forked from earthkingman/42Swim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
59 lines (57 loc) ยท 1.13 KB
/
docker-compose.prod.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:
redis:
image: redis
container_name: redis
ports:
- 6379:6379
db:
image: mariadb:10
container_name: db
ports:
- 3306:3306
volumes:
- ./backend/db/conf.d:/etc/mysql/conf.d
- ./backend/db/data:/var/lib/mysql
- ./backend/db/initdb.d:/docker-entrypoint-initdb.d
env_file: ./backend/.env
environment:
TZ: Asia/Seoul
networks:
- 42swim_net
restart: always
42swim-server:
image: 42swim-server:v1
build:
context: ./backend
dockerfile: Dockerfile
container_name: 42swim-server
ports:
- 5000:5000
env_file: ./backend/.env
environment:
TZ: Asia/Seoul
networks:
- 42swim_net
depends_on:
- db
- redis
restart: always
42swim-client:
image: 42swim-client:v1
build:
context: ./frontend
dockerfile: prod.Dockerfile
container_name: 42swim-client
env_file: ./frontend/.env
ports:
- 80:80
networks:
- 42swim_net
depends_on:
- 42swim-server
restart: always
networks:
42swim_net:
name: 42swim_net
driver: bridge