-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.26 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
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: spoolsync
POSTGRES_USER: spoolsync
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-spoolsync_dev}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U spoolsync"]
interval: 5s
timeout: 5s
retries: 5
backend:
image: ghcr.io/spool-sync/spoolsync-backend:latest
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://spoolsync:${POSTGRES_PASSWORD:-spoolsync_dev}@postgres:5432/spoolsync?schema=public
PORT: 3000
NODE_ENV: production
JWT_SECRET: ${JWT_SECRET:-change_this_in_production}
JWT_EXPIRES_IN: 7d
SYSLOG_HOST: ${SYSLOG_HOST:-}
volumes:
- integrations_data:/app/integrations/printers
ports:
- "3000:3000"
frontend:
image: ghcr.io/spool-sync/spoolsync-frontend:latest
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- backend
ports:
- "80:80"
volumes:
postgres_data:
integrations_data: