-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (50 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (50 loc) · 1.1 KB
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
version: '3.9'
services:
frontend:
container_name: frontend
build: ./frontend
ports:
- 5173:5173
working_dir: /app-frontend
depends_on:
backend:
condition: service_healthy
healthcheck:
test: ["CMD", "lsof", "-t", "-i:5173"]
timeout: 10s
retries: 5
backend:
container_name: backend
build: ./backend
ports:
- 3001:3001
platform: linux/x86_64
working_dir: /app-backend
depends_on:
postgres:
condition: service_healthy
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ngcash
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
APP_PORT: 3001
healthcheck:
test: ["CMD", "lsof", "-t", "-i:3001"]
timeout: 10s
retries: 5
postgres:
container_name: postgres
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
restart: always
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5