foxnouns/docker-compose.yml

37 lines
799 B
YAML
Raw Normal View History

2024-03-14 02:35:59 +01:00
version: "3"
services:
app:
image: foxnouns
build: .
environment:
- DATABASE_USER=postgres
- DATABASE_PASSWORD=postgres
- DATABASE_HOST=postgres
- DATABASE_NAME=postgres
volumes:
- "./.env:/app/.env"
ports:
- "8000:8000"
networks:
- default
postgres:
image: docker.io/postgres:15-alpine
volumes:
- "postgres_data:/var/lib/postgresql/data"
command: ["postgres",
"-c", "max-connections=1000",
"-c", "timezone=Etc/UTC",
"-c", "max_wal_size=1GB",
"-c", "min_wal_size=80MB",
"-c", "shared_buffers=128MB"]
environment:
- "POSTGRES_PASSWORD=postgres"
restart: unless-stopped
networks:
- default
volumes:
postgres_data: