boussole-pluss/docker-compose.yml

52 lines
1.1 KiB
YAML

version: '3'
services:
frontend:
build:
context: frontend/
args:
BACKEND_BASE_URL: http://localhost:8191
ports:
- "8190:80"
backend:
build: backend/
depends_on:
- database
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- DATABASE_HOST=${DATABASE_HOST}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_NAME=${DATABASE_NAME}
- MAIL_HOST=${MAIL_HOST}
- MAIL_PORT=${MAIL_PORT}
- MAIL_FROM=${MAIL_FROM}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_ACTIVATE_DEBUG=${MAIL_ACTIVATE_DEBUG}
- FRONTEND_URL=${FRONTEND_URL}
ports:
- "8191:8080"
networks:
- pluss
database:
image: postgres:16-alpine
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- PGDATA=/data/postgres
volumes:
- pluss_postgres:/data/postgres
ports:
- "5434:5432"
networks:
- pluss
restart: unless-stopped
networks:
pluss:
volumes:
pluss_postgres: