-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
58 lines (52 loc) · 1015 Bytes
/
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
58
version: '4'
services:
adonis_app:
container_name: adonis_app
restart: always
depends_on:
- database
- redis
build:
context: .
target: dependencies
ports:
- ${PORT}:${PORT}
- 9229:9229
env_file:
- .env
environment:
- DB_HOST=database
- REDIS_HOST=redis
volumes:
- ./:/home/node/app
command: dumb-init node ace serve --watch
networks:
- bridge
database:
container_name: database
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: adonis_app
ports:
- "3306:3306"
volumes:
- db-data:/var/lib/mysql
- $PWD/dockerConfig/mysql-dev-init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- bridge
redis:
container_name: redis
image: redis:6.0.9
volumes:
- redis-data:/data
ports:
- '6379:6379'
networks:
- bridge
volumes:
db-data:
redis-data:
networks:
bridge:
driver: bridge