36 lines
799 B
YAML
36 lines
799 B
YAML
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:
|