-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 977 Bytes
/
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
version: '3.8'
services:
backend:
container_name: kintai-backend
image: kintai-backend
build:
context: ./backend
dockerfile: Dockerfile
env_file: ./backend/.env
stdin_open: true
tty: true
depends_on:
- db
frontend:
container_name: kintai-frontend
image: kintai-frontend
build:
dockerfile: Dockerfile
context: ./frontend
restart: always
depends_on:
- backend
db:
container_name: kintai-db
image: postgres:15.10-alpine
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: kintai_production
volumes:
- database:/var/lib/postgresql/data
nginx:
container_name: kintai-nginx
build:
context: ./nginx
dockerfile: Dockerfile
restart: always
ports:
- 54070:3080
- 54080:4080
depends_on:
- backend
- frontend
volumes:
database: