-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
98 lines (82 loc) · 1.85 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
services:
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
restart: always
ports:
- 8888:80
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
volumes:
- pgadmin-data:/var/lib/pgadmin
networks:
- kanban-net
depends_on:
kandb:
condition: service_healthy
restart: true
kandb:
image: postgres:alpine
restart: always
container_name: kandb
command: -c 'max_connections=200'
stdin_open: true
tty: true
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -d kandb -U kanuser"]
interval: 5s
timeout: 5s
retries: 5
ports:
- ${KANDB_PORT}:${KANDB_PORT}
volumes:
- kandb-data:/var/lib/postgresql/data
networks:
- kanban-net
api:
container_name: api_container
build: ./backend/api
restart: always
environment:
DATABASE_URL: ${DATABASE_URL}
JWT_SECRET: ${JWT_SECRET}
FBS_API_URL: https://172.17.0.1/api/v1
NODE_TLS_REJECT_UNAUTHORIZED: "0"
ports:
- "3000:3000"
depends_on:
kandb:
condition: service_healthy
restart: true
networks:
- kanban-net
frontend:
container_name: kanban_frontend
build: ./frontend
restart: always
depends_on:
- api
ports:
- "4173:4173"
sql-setup-runner:
container_name: sql-setup-runner
build: ./backend/database/setup
env_file:
- .env
depends_on:
kandb:
condition: service_healthy
restart: false
networks:
- kanban-net
networks:
kanban-net:
name: kan-net
volumes:
kandb-data:
pgadmin-data: