-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
35 lines (35 loc) · 829 Bytes
/
docker-compose.yaml
File metadata and controls
35 lines (35 loc) · 829 Bytes
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
name: scpdev
services:
web:
restart: unless-stopped
build: .
depends_on:
postgres:
condition: service_healthy
ports:
- 8000:8000
volumes:
- ./files:/app/files
- ./archive:/app/archive:ro
env_file:
- prod-web.env
environment:
DB_ENGINE: pg
DB_PG_HOST: postgres
DB_PG_USERNAME: pguser
DB_PG_PASSWORD: pguser
postgres:
image: postgres:14
restart: unless-stopped
volumes:
- ./postgresql:/var/lib/postgresql
- ./postgresql/data:/var/lib/postgresql/data
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: pguser
POSTGRES_DB: scpwiki
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 5s
timeout: 3s
retries: 3