ansible/playbooks/apps/templates/manuels/docker-compose.yaml.j2

25 lines
498 B
Text
Raw Normal View History

2024-10-11 19:28:57 +02:00
services:
django:
image: crocmagnon/manuels-scolaires:latest
env_file:
- .env
volumes:
- ./media:/app/media
depends_on:
- db
restart: always
init: true
tty: true
mem_limit: 512m
ports:
2024-10-15 19:00:21 +02:00
- "127.0.0.1:8012:8000"
2024-10-11 19:28:57 +02:00
db:
image: postgres:15
restart: always
environment:
POSTGRES_PASSWORD: "{{ pg_password }}"
POSTGRES_USER: "manuels"
POSTGRES_DB: "manuels"
volumes:
- ./db_data:/var/lib/postgresql/data