mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +00:00
Yoann Piétri
43b6a2cdf2
Dockerfile and docker-compose files are now included in directory. They start a db, migrate, create a superuser if it doesn't already exists and start the server
31 lines
No EOL
597 B
YAML
31 lines
No EOL
597 B
YAML
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:
|
|
build: .
|
|
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 |