2021-07-21 01:12:26 +00:00
|
|
|
version: '2.3'
|
|
|
|
|
|
|
|
services:
|
2021-08-04 16:21:10 +00:00
|
|
|
files:
|
2022-05-17 21:09:36 +00:00
|
|
|
container_name: "rDrama"
|
2021-10-27 20:12:16 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
volumes:
|
|
|
|
- "./:/service"
|
2022-02-22 13:34:41 +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
|
2022-06-29 03:01:52 +00:00
|
|
|
command: ["postgres", "-c", "log_statement=all"]
|
2022-05-27 22:58:01 +00:00
|
|
|
# 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"
|