2021-02-17 13:06:07 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
database_data:
|
|
|
|
driver: local
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:latest
|
|
|
|
volumes:
|
|
|
|
- database_data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=postgres
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
|
|
|
|
re2o:
|
2024-03-08 09:05:24 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
target: postgres
|
2021-02-17 13:06:07 +00:00
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=postgres
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- SUPERUSER_LOGIN=admin
|
|
|
|
- SUPERUSER_PASS=admin
|
|
|
|
- SUPERUSER_EMAIL=admin@example.net
|