-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
65 lines (63 loc) ยท 1.27 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
63
64
65
version: '3.7'
services:
front:
image: jdd04026/bu-front:1.0.2
container_name: front
ports:
- '8080:80'
networks:
- app
back:
image: jdd04026/bu-back:1.0.2
container_name: back
restart: always
# env ํ์ผ ๊ฐ์ ๊ฒฝ์ฐ๋ ์๋ฒ์ฉ์ผ๋ก ๋ฐ๋ก ์ค์ ์ ํด์ ๋ฃ์ด์ฃผ์.
env_file:
- .env
ports:
- '3000:3000'
networks:
- app
reserve:
image: jdd04026/bu-reserve:1.0.2
container_name: reserve
restart: always
# env ํ์ผ ๊ฐ์ ๊ฒฝ์ฐ๋ ์๋ฒ์ฉ์ผ๋ก ๋ฐ๋ก ์ค์ ์ ํด์ ๋ฃ์ด์ฃผ์.
# ์๋ฒ์ envํ์ผ ์ค์ ๊ณผ ๋์ผํ๋ค.
env_file:
- ./env
ports:
- '4000:3000'
networks:
- app
db:
image: jdd04026/mariadb-locale:latest
container_name: bu-db
volumes:
- dbdata:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=pass
- MYSQL_DATABASE=bookus
- MYSQL_USER=user
- MYSQL_PASSWORD=pass
ports:
- '3306:3306'
networks:
- app
redis:
image: redis:5.0.7-alpine
container_name: bu-redis
volumes:
- redisdata:/data
ports:
- '6379:6379'
networks:
- app
networks:
app:
name: app_bridge
volumes:
dbdata:
driver: local
redisdata:
driver: local