MarseyWorld/docker-compose.yml

37 lines
795 B
YAML
Raw Normal View History

2021-07-21 01:12:26 +00:00
version: '2.3'
services:
2021-08-04 16:21:10 +00:00
files:
2021-10-27 20:12:16 +00:00
build:
context: .
volumes:
- "./:/service"
2022-02-11 23:32:14 +00:00
env_file: env
2021-10-27 20:12:16 +00:00
environment:
- DATABASE_URL=postgresql://postgres@postgres:5432
2021-12-24 03:22:00 +00:00
- REDIS_URL=redis://redis
2021-10-27 20:12:16 +00:00
links:
- "redis"
- "postgres"
ports:
- "80:80"
depends_on:
- redis
- postgres
2021-07-21 01:12:26 +00:00
redis:
2021-10-27 20:12:16 +00:00
image: redis
ports:
- "6379:6379"
2021-07-21 01:12:26 +00:00
postgres:
2021-10-27 20:12:16 +00:00
image: postgres:12.3
2021-11-06 15:52:48 +00:00
# command: ["postgres", "-c", "log_statement=all"]
# uncomment this if u wanna output all SQL queries to the console
2021-10-27 20:12:16 +00:00
volumes:
- "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql"
2021-11-04 15:22:00 +00:00
- "./seed-db.sql:/docker-entrypoint-initdb.d/10-seed-db.sql"
2021-10-27 20:12:16 +00:00
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- "5432:5432"