-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
85 lines (85 loc) · 1.7 KB
/
docker-compose.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '2'
services:
app:
build:
context: ./docker/app
dockerfile: Dockerfile
image: vessel/app
container_name: cip3-www
ports:
- "${APP_PORT}:80"
environment:
CONTAINER_ENV: "${APP_ENV}"
XDEBUG_HOST: "${XDEBUG_HOST}"
WWWUSER: "${WWWUSER}"
volumes:
- .:/var/www/html
networks:
- vessel
scheduler:
image: vessel/app
container_name: cip3-scheduler
depends_on:
- app
volumes:
- .:/var/www/html
environment:
CONTAINER_ROLE: scheduler
networks:
- vessel
queue:
image: vessel/app
container_name: cip3-queue
restart: on-failure
depends_on:
- app
- redis
volumes:
- .:/var/www/html
environment:
CONTAINER_ROLE: queue
networks:
- vessel
node:
build:
context: ./docker/node
dockerfile: Dockerfile
args:
uid: "${WWWUSER}"
image: vessel/node
container_name: cip3-node
user: node
volumes:
- .:/var/www/html
networks:
- vessel
mysql:
image: mysql:5.7
container_name: cip3-db
ports:
- "${MYSQL_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
MYSQL_DATABASE: "${DB_DATABASE}"
MYSQL_USER: "${DB_USERNAME}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
volumes:
- vesselmysql:/var/lib/mysql
# - ./docker/mysql/conf.d:/etc/mysql/conf.d
# - ./docker/mysql/logs:/var/log/mysql
networks:
- vessel
redis:
image: redis:alpine
volumes:
- vesselredis:/data
networks:
- vessel
networks:
vessel:
driver: "bridge"
volumes:
vesselmysql:
driver: "local"
vesselredis:
driver: "local"