-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.full.yml
More file actions
58 lines (55 loc) · 1.57 KB
/
Copy pathdocker-compose.full.yml
File metadata and controls
58 lines (55 loc) · 1.57 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
58
services:
postgres:
image: postgres:16-alpine
container_name: retro-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-retro}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-retro}
POSTGRES_DB: ${POSTGRES_DB:-retro}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB']
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: apps/back/Dockerfile
container_name: retro-backend
restart: unless-stopped
ports:
- '3001:3001'
environment:
POSTGRES_USER: ${POSTGRES_USER:-retro}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-retro}
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: ${POSTGRES_DB:-retro}
JWT_SECRET: ${JWT_SECRET}
PORT: 3001
FRONTEND_URL: ${FRONTEND_URL:-http://localhost:3000}
NODE_ENV: ${NODE_ENV:-development}
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: .
dockerfile: apps/front/Dockerfile
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:3001/api}
NEXT_PUBLIC_WS_URL: ${NEXT_PUBLIC_WS_URL:-http://localhost:3001}
NEXT_PUBLIC_GOOGLE_ENABLED: ${NEXT_PUBLIC_GOOGLE_ENABLED:-false}
container_name: retro-frontend
restart: unless-stopped
ports:
- '3000:3000'
environment:
NODE_ENV: ${NODE_ENV:-development}
depends_on:
- backend
volumes:
postgres_data: