deploiement sur VM

This commit is contained in:
Alexandre Chevalier
2026-02-13 23:37:08 +01:00
parent e37f99144b
commit 2291a85b79
142 changed files with 322045 additions and 208 deletions

View File

@@ -3,12 +3,13 @@ services:
build:
context: ..
dockerfile: dockerfiles/front/Dockerfile
ports:
- "80:80"
volumes:
- ../../../doodlestudent/front:/app
- ./certbot/www:/var/www/certbot:ro
- ./certbot/conf:/etc/letsencrypt:ro
- ../doodlestudent/front:/app
- ../certbot/www:/var/www/certbot:ro
- ../certbot/conf:/etc/letsencrypt:ro
environment:
- FLASK_ENV=development
depends_on:
@@ -20,14 +21,14 @@ services:
- app-network
# https://stackoverflow.com/questions/57591868/how-correctly-install-ssl-certificate-using-certbot-in-docker
certbot:
image: certbot/certbot:latest
container_name: certbot
depends_on:
- front
volumes:
- ../certbot/www/:/var/www/certbot/:rw
- ../certbot/conf/:/etc/letsencrypt/:rw
# certbot:
# image: certbot/certbot:latest
# container_name: certbot
# depends_on:
# - front
# volumes:
# - ../certbot/www/:/var/www/certbot/:rw
# - ../certbot/conf/:/etc/letsencrypt/:rw
back:
build:
@@ -36,7 +37,7 @@ services:
ports:
- "8080:8080"
volumes:
- ../../../doodlestudent/api:/app
- ../doodlestudent/api:/app
environment:
- FLASK_ENV=development
depends_on:
@@ -71,7 +72,7 @@ services:
ports:
- "9001:9001"
volumes:
- ../../../doodlestudent/api/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
- ../doodlestudent/api/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
networks:
- app-network
healthcheck: