-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose-dev.yml
More file actions
58 lines (53 loc) · 1.34 KB
/
Copy pathcompose-dev.yml
File metadata and controls
58 lines (53 loc) · 1.34 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
51
52
53
54
55
56
57
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
target: dev
container_name: capuchin-server
depends_on:
capuchin-db:
condition: service_healthy
environment:
MODE: dev
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_HOST: ${POSTGRES_HOST}
ports:
- "${SERVER_PORT:-8080}:8080"
restart: unless-stopped
volumes:
- ./backend:/app
capuchin-db:
container_name: capuchin-db
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_HOST: ${POSTGRES_HOST}
ports:
- "5432:5432"
healthcheck:
interval: 5s
retries: 5
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}" ]
timeout: 5s
image: postgres:17-alpine
volumes:
- ./backup:/var/lib/postgresql
- ./backend/db/init.sql:/docker-entrypoint-initdb.d/init.sql
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: dev
container_name: capuchin-client
environment:
VITE_API_URL: ${VITE_API_URL}
ports:
- "${CLIENT_PORT:-5173}:5173"
restart: unless-stopped
volumes:
- ./frontend:/app
- /app/node_modules