-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.28 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
services:
postgres:
image: postgres:16
container_name: wizard-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${DOCKER_POSTGRES_USER:-wizard}
POSTGRES_PASSWORD: ${DOCKER_POSTGRES_PASSWORD:-wizard}
POSTGRES_DB: ${DOCKER_POSTGRES_DB:-wizard}
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U wizard -d wizard']
interval: 10s
timeout: 5s
retries: 10
server:
build:
context: .
dockerfile: apps/server/Dockerfile
container_name: wizard-server
restart: unless-stopped
environment:
DATABASE_URL: ${DOCKER_DATABASE_URL:-postgresql://wizard:wizard@postgres:5432/wizard}
PORT: ${DOCKER_SERVER_PORT:-3000}
CLIENT_UI_URL: ${DOCKER_CLIENT_UI_URL:-http://localhost:8080}
HOST_DISCONNECT_TIMEOUT_MS: ${DOCKER_HOST_DISCONNECT_TIMEOUT_MS:-600000}
depends_on:
postgres:
condition: service_healthy
expose:
- '${DOCKER_SERVER_PORT:-3000}'
client-ui:
build:
context: .
dockerfile: apps/client-ui/Dockerfile
container_name: wizard-client-ui
restart: unless-stopped
depends_on:
- server
ports:
- '8080:80'
volumes:
postgres_data: