-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (55 loc) · 1.22 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
version: '3.8'
services:
api:
container_name: api
build: "."
working_dir: /home/node
env_file:
- _docker/development/common.env
- _docker/development/api.env
volumes:
- .:/home/node:delegated
- ./var/log:/var/log:delegated
ports:
- 3000:3000
entrypoint: "api-entrypoint.sh"
command: ["npm", "run", "dev"]
networks:
family_backer:
depends_on:
- db
cron:
container_name: cron
build: "."
working_dir: /home/node
env_file:
- _docker/development/common.env
- _docker/development/cron.env
volumes:
- .:/home/node:delegated
- ./var/log:/var/log:delegated
entrypoint: "cron-entrypoint.sh"
command: ["cron", "-f"]
networks:
family_backer:
depends_on:
- api
db:
container_name: db
restart: always
image: mysql/mysql-server:8.0
env_file:
- _docker/development/db.env
ports:
- 3306:3306
networks:
family_backer:
aliases: ["mysql.docker.internal"]
volumes:
- db:/var/lib/mysql
- ./_docker/development/db/mounts/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
networks:
family_backer:
driver: bridge
volumes:
db: