-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
63 lines (60 loc) ยท 1.15 KB
/
docker-compose.dev.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
version: '3.7'
services:
mysql-database:
container_name: mysql-database
image: mysql:5.7
ports:
- 3306:3306
env_file:
- ./app/.env.dev
expose:
- 3306
restart: on-failure
volumes:
- ./db/data:/var/lib/mysql
- ./db/conf.d:/etc/mysql/conf.d
networks:
backend:
ipv4_address: 172.16.5.2
redis-database:
image: redis
container_name: redis-database
ports:
- 6379:6379
expose:
- 6379
restart: on-failure
networks:
backend:
ipv4_address: 172.16.5.3
node-server:
container_name: node-server
build: ./app
ports:
- 80:80
environment:
- PORT=80
- NODE_ENV=dev
env_file:
- ./app/.env
- ./app/.env.dev
volumes:
- ./app:/usr/src/app
depends_on:
- mysql-database
- redis-database
command:
- /bin/bash
- -c
- './docker-entrypoint.dev.sh
&& pm2-runtime start pm2.config.json'
networks:
backend:
ipv4_address: 172.16.5.4
networks:
backend:
driver: bridge
name: habitbread
ipam:
config:
- subnet: 172.16.5.0/16