-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
59 lines (55 loc) · 1.03 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
version: "3"
services:
api:
build: ./api
container_name: hackers_api
# command: npm run start
volumes:
- ./api/:/home/app
- /home/app/node_modules
ports:
- "5000:5000"
depends_on:
- db
networks:
- app-tier
environment:
WAIT_HOSTS: db:3306
# app:
# build: ./app
# container_name: hackers_app
# volumes:
# - ./app/:/home/app
# - /home/app/node_modules
# ports:
# - "5001:5001"
# depends_on:
# - api
# networks:
# - app-tier
# environment:
# WAIT_HOSTS: api:5000
db:
image: mysql:5.7
restart: always
container_name: hackers_db
environment:
MYSQL_DATABASE: hackers
MYSQL_USER: root
MYSQL_PASSWORD: changeme
MYSQL_ROOT_PASSWORD: changeme
# MYSQL_PORT: 3307
ports:
- "3307:3306"
expose:
- "3307"
volumes:
- db_data:/var/lib/mysql
networks:
- app-tier
volumes:
db_data:
driver: "local"
networks:
app-tier:
driver: bridge