-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 997 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 997 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
36
37
38
39
40
services:
postgres:
image: postgres:16-alpine
container_name: wikikeeper-postgres
environment:
POSTGRES_DB: wikikeeper
POSTGRES_USER: wikikeeper
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-wikikeeper123}
# ports:
# - "5432:5432"
volumes:
- ./data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wikikeeper"]
interval: 10s
timeout: 5s
retries: 5
shm_size: 2g
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: wikikeeper-backend
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_USER: wikikeeper
DB_PASSWORD: ${POSTGRES_PASSWORD:-wikikeeper123}
DB_NAME: wikikeeper
PORT: 8000
HOST: 0.0.0.0
ADMIN_TOKEN: ${ADMIN_TOKEN:-}
ALLOW_ORIGINS: ${ALLOW_ORIGINS:-}
ports:
- "127.0.0.82:8732:8000"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped