Files
canine/docker-compose.yml
2025-08-09 19:50:22 -07:00

40 lines
1.1 KiB
YAML

services:
postgres:
image: postgres:16
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_MULTIPLE_DATABASES=canine_production,canine_development
ports:
- "5432:5432"
volumes:
- "postgres:/var/lib/postgresql/data"
web:
build:
context: .
dockerfile: Dockerfile
# Overrides default command so things don't shut down after the process ends.
# command: sleep infinity
depends_on:
- postgres
stdin_open: true
tty: true
ports:
- "${PORT:-3000}:${PORT:-3000}"
- "3200:3200"
environment:
- DATABASE_URL=postgres://postgres:password@postgres:5432
- PORT=${PORT:-3000}
- CANINE_USERNAME=${CANINE_USERNAME}
- CANINE_PASSWORD=${CANINE_PASSWORD}
- LOCAL_MODE=true
# This docker file is only expected to be used in the laptop deployment, so we can hardcode the secret key base
- SECRET_KEY_BASE=a38fcb39d60f9d146d2a0053a25024b9
- APP_HOST=http://localhost:${PORT:-3000}
volumes:
- ${DOCKER_SOCKET:-/var/run/docker.sock}:/var/run/docker.sock
volumes:
postgres: