mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
93 lines
2.0 KiB
YAML
93 lines
2.0 KiB
YAML
services:
|
|
redis:
|
|
image: "redis:latest"
|
|
ports:
|
|
- 6379:6379
|
|
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
|
|
database:
|
|
image: "postgres:latest"
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: school
|
|
TZ: Europe/Paris
|
|
docuseal_db:
|
|
image: postgres:latest
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
DOCUSEAL_DB_HOST: docuseal_db
|
|
POSTGRES_DB: docuseal
|
|
ports:
|
|
- 5433:5432 # port différent si besoin d'accès direct depuis l'hôte
|
|
|
|
docuseal:
|
|
image: docuseal/docuseal:latest
|
|
container_name: docuseal_app
|
|
depends_on:
|
|
- docuseal_db
|
|
ports:
|
|
- "3001:3000"
|
|
environment:
|
|
DATABASE_URL: postgresql://postgres:postgres@docuseal_db:5432/docuseal
|
|
volumes:
|
|
- ./docuseal:/data/docuseal
|
|
|
|
caddy:
|
|
image: caddy:2
|
|
container_name: caddy
|
|
restart: unless-stopped
|
|
ports:
|
|
- "4000:4443"
|
|
volumes:
|
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
depends_on:
|
|
- docuseal
|
|
|
|
backend:
|
|
build:
|
|
context: ./Back-End
|
|
ports:
|
|
- 8080:8080
|
|
volumes:
|
|
- ./Back-End:/Back-End
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
- TEST_MODE=True
|
|
- CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:8080,http://127.0.0.1:8080
|
|
- CSRF_TRUSTED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:8080,http://127.0.0.1:8080
|
|
links:
|
|
- "database:database"
|
|
- "redis:redis"
|
|
depends_on:
|
|
- redis
|
|
- database
|
|
#- docuseal
|
|
command: python start.py
|
|
|
|
# frontend:
|
|
# build:
|
|
# context: ./Front-End
|
|
# args:
|
|
# - BUILD_MODE=development
|
|
# ports:
|
|
# - 3000:3000
|
|
# volumes:
|
|
# - ./Front-End:/app
|
|
# env_file:
|
|
# - .env
|
|
# environment:
|
|
# - TZ=Europe/Paris
|
|
# depends_on:
|
|
# - backend
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config:
|