forked from doctor-smith/hanoi-towers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.09 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
62
version: '3.8'
networks:
frontend:
driver: bridge
backend:
services:
hanoi_frontend:
build:
context: .
dockerfile: hanoi-frontend/docker/Dockerfile
ports:
- "8080:80"
container_name: hanoi_frontend
hostname: hanoi_frontend
env_file:
- hanoi-frontend/.env
depends_on:
- hanoi_backend
networks:
- frontend
- backend
hanoi_backend:
build:
context: .
dockerfile: hanoi-backend/docker/Dockerfile
ports:
- "8081:8081"
container_name: hanoi_backend
hostname: hanoi_backend
env_file:
- hanoi-backend/.env
depends_on:
- hanoi_database
networks:
- backend
hanoi_database:
build:
context: .
dockerfile: hanoi-database/docker/Dockerfile
container_name: hanoi_database
hostname: hanoi_database
ports:
- "3306:3306"
env_file:
- hanoi-database/.env
networks:
- backend
# adminer:
# image: adminer
# hostname: adminer
# restart: always
# ports:
# - "8082:8080"
# networks:
# - frontend
# - backend