-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (58 loc) ยท 1.08 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
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
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:
- 3000:3000
environment:
- NODE_ENV=local
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
&& npm run dev"
networks:
backend:
ipv4_address: 172.16.5.4
networks:
backend:
driver: bridge
name: habitbread
ipam:
config:
- subnet: 172.16.5.0/16