diff --git a/dockercompose/docker-compose.yml b/dockercompose/docker-compose.yml new file mode 100644 index 0000000..cc1cc72 --- /dev/null +++ b/dockercompose/docker-compose.yml @@ -0,0 +1,75 @@ +services: + nginx: + image: nginx:latest + ports: + - "80:80" + volumes: + - ./nginx.conf:/etc/nginx/nginx.conf:ro + depends_on: + - db + - etherpad + networks: + - app-network + + front: + build: + context: .. + dockerfile: dockerfiles/front/DockerFile + + ports: + - "5000:5000" + volumes: + - ../doodlestudent/front:/app + environment: + - FLASK_ENV=development + networks: + - app-network + + back: + build: + context: .. + dockerfile: dockerfiles/back/DockerFile + ports: + - "8000:8000" + volumes: + - ../doodlestudent/api:/app + environment: + - FLASK_ENV=development + depends_on: + - db + networks: + - app-network + + db: + image: mysql + ports: + - "3306:3306" + environment: + - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=tlc + - MYSQL_USER=tlc + - MYSQL_PASSWORD=tlc + + networks: + - app-network + etherpad: + image: etherpad/etherpad + ports: + - "9001:9001" + volumes: + - ../doodlestudent/api/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt + + networks: + - app-network + mail: + image: bytemark/smtp + restart: always + ports: + - "2525:25" + + networks: + - app-network + +networks: + app-network: + external: true \ No newline at end of file