mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
chore: Initial Commit
feat: Gestion des inscriptions [#1] feat(frontend): Création des vues pour le paramétrage de l'école [#2] feat: Gestion du login [#6] fix: Correction lors de la migration des modèle [#8] feat: Révision du menu principal [#9] feat: Ajout d'un footer [#10] feat: Création des dockers compose pour les environnements de développement et de production [#12] doc(ci): Mise en place de Husky et d'un suivi de version automatique [#14]
This commit is contained in:
57
docker-compose.yml
Normal file
57
docker-compose.yml
Normal file
@ -0,0 +1,57 @@
|
||||
# A Docker Compose must always start with the version tag.
|
||||
# We use '3' because it's the last version.
|
||||
#version: '3'
|
||||
|
||||
# You should know that Docker Compose works with services.
|
||||
# 1 service = 1 container.
|
||||
# For example, a service, a server, a client, a database...
|
||||
# We use the keyword 'services' to start to create services.
|
||||
services:
|
||||
redis:
|
||||
image: 'redis:latest'
|
||||
ports:
|
||||
- 6379:6379
|
||||
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
|
||||
# The name of our service is "database"
|
||||
# but you can use the name of your choice.
|
||||
# Note: This may change the commands you are going to use a little bit.
|
||||
database:
|
||||
# Official Postgres image from DockerHub (we use the last version)
|
||||
image: 'postgres:latest'
|
||||
|
||||
# By default, a Postgres database is running on the 5432 port.
|
||||
# If we want to access the database from our computer (outside the container),
|
||||
# we must share the port with our computer's port.
|
||||
# The syntax is [port we want on our machine]:[port we want to retrieve in the container]
|
||||
# Note: You are free to change your computer's port,
|
||||
# but take into consideration that it will change the way
|
||||
# you are connecting to your database.
|
||||
ports:
|
||||
- 5432:5432
|
||||
|
||||
environment:
|
||||
POSTGRES_USER: postgres # The PostgreSQL user (useful to connect to the database)
|
||||
POSTGRES_PASSWORD: postgres # The PostgreSQL password (useful to connect to the database)
|
||||
POSTGRES_DB: school # The PostgreSQL default database (automatically created at first launch)
|
||||
TZ: Europe/Paris
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ./Back-End
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- ./Back-End:/Back-End
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
links:
|
||||
- "database:database"
|
||||
- "redis:redis"
|
||||
depends_on:
|
||||
- redis
|
||||
- database
|
||||
command: python start.py
|
||||
|
||||
Reference in New Issue
Block a user