-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
executable file
·57 lines (51 loc) · 1.06 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3'
services:
nginx:
build: .docker/nginx
ports:
- 443:443
volumes:
- ./.docker/nginx/conf.d:/etc/nginx/conf.d/:ro
- .:/home/wwwroot
- ./.docker/nginx/certs:/etc/nginx/certs
depends_on:
- php
mysql:
image: "mysql:8.0.23"
command: mysqld --sql_mode=""
volumes:
- data_mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: draw
MYSQL_USER: draw
MYSQL_PASSWORD: draw
ports:
- '3306:3306'
php:
build:
context: .docker/php
args:
xdebug: 1
volumes:
- .:/home/wwwroot
- ~/.ssh:/home/dev/.ssh
- ./.docker/php/php.ini:/usr/local/etc/php/php.ini
depends_on:
- mysql
- maildev
- mongodb
environment:
IN_CONTAINER: 1
maildev:
image: djfarrelly/maildev:latest
command: bin/maildev --web 80 --smtp 25 --hide-extensions STARTTLS
ports:
- 8001:80
mongodb:
image: "mongo:5.0.0"
volumes:
- "data_mongo:/data/db"
volumes:
data_mysql:
data_mongo: