-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
50 lines (46 loc) · 998 Bytes
/
docker-compose.yaml
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
name: "health-checker-prod"
services:
backend:
image: skullyfox/backend:latest
command: npm run dev
env_file: .env
volumes:
- ./back/src:/app/src
restart: always
depends_on:
database:
condition: service_healthy
frontend:
image: skullyfox/frontend:latest
command: npm run dev
env_file: .env
volumes:
- ./front/src/:/app/src/
restart: always
database:
image: postgres
env_file: .env
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 20
volumes:
- ./data/database:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
depends_on:
database:
condition: service_healthy
gateway:
image: nginx
ports:
- 7000:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
restart: always
depends_on:
- backend
- frontend