-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 1023 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
volumes:
rpg_pal_data:
services:
db:
container_name: db-rpg-pal
image: postgres
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: devPassword
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- rpg_pal_data:/var/lib/postgresql/data/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dev -d postgres"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
frontend:
container_name: frontend-rpg-pal
image: frontend-rpg-pal
build:
context: ./frontend
target: development
volumes:
- ./frontend/src:/frontend/src
- ./frontend/public:/frontend/public
ports:
- "3000:3000"
backend:
container_name: backend-rpg-pal
image: backend-rpg-pal
build:
context: ./backend
target: development
volumes:
- ./backend:/backend
depends_on:
- db
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--silent"]
ports:
- "3001:3001"