2024-03-13 11:51:23 +05:30
|
|
|
services:
|
|
|
|
|
server:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
ports:
|
|
|
|
|
- 8000:8000
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
environment:
|
|
|
|
|
DATABASE_URL: "postgres://postgres:postgres@db:5432/horilla"
|
2025-05-09 08:33:58 +02:00
|
|
|
command: sh ./entrypoint.sh
|
2024-12-16 03:47:24 -05:00
|
|
|
volumes:
|
|
|
|
|
- ./horilla:/app/horilla
|
2025-05-23 12:30:53 +07:00
|
|
|
- ./media:/app/media
|
2024-03-13 11:51:23 +05:30
|
|
|
depends_on:
|
|
|
|
|
db:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
|
|
db:
|
|
|
|
|
image: postgres:16-bullseye
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_DB: horilla
|
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
|
POSTGRES_PASSWORD: postgres
|
2024-12-29 09:50:57 +03:00
|
|
|
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256"
|
|
|
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
2024-03-13 11:51:23 +05:30
|
|
|
ports:
|
|
|
|
|
- 5432:5432
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
volumes:
|
|
|
|
|
- horilla-data:/var/lib/postgresql/data
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "pg_isready", "-U", "postgres"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
2024-05-07 12:23:36 +05:30
|
|
|
retries: 5
|
2024-03-13 11:51:23 +05:30
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
horilla-data:
|