rDrama/docker-compose.yml
2022-11-09 21:29:18 -06:00

41 lines
922 B
YAML

version: '2.3'
services:
files:
container_name: "themotte"
build:
context: .
target: dev
volumes:
- "./:/service"
env_file: env
environment:
- DATABASE_URL=postgresql://postgres@postgres:5432
- REDIS_URL=redis://redis
links:
- "redis"
- "postgres"
ports:
- "80:80"
depends_on:
- redis
- postgres
redis:
container_name: "themotte_redis"
image: redis
ports:
- "6379:6379"
postgres:
container_name: "themotte_postgres"
image: postgres:12.3
# command: ["postgres", "-c", "log_statement=all"]
# uncomment this if u wanna output all SQL queries to the console
volumes:
- "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql"
- "./seed-db.sql:/docker-entrypoint-initdb.d/10-seed-db.sql"
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"