81 lines
1.5 KiB
YAML
81 lines
1.5 KiB
YAML
services:
|
|
nginx:
|
|
build:
|
|
context: ..
|
|
dockerfile: dockerfiles/nginx/Dockerfile
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- db
|
|
- etherpad
|
|
networks:
|
|
- app-network
|
|
|
|
front:
|
|
build:
|
|
context: .
|
|
dockerfile: dockerfiles/front/Dockerfile
|
|
|
|
ports:
|
|
- "5000:80"
|
|
volumes:
|
|
- ./doodlestudent/front:/app
|
|
environment:
|
|
- FLASK_ENV=development
|
|
networks:
|
|
- app-network
|
|
|
|
back:
|
|
build:
|
|
context: .
|
|
dockerfile: dockerfiles/back/DockerfileUsingApiNative
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./doodlestudent/api:/app
|
|
environment:
|
|
- FLASK_ENV=development
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
networks:
|
|
- app-network
|
|
|
|
db:
|
|
image: mysql
|
|
ports:
|
|
- "3306:3306"
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=root
|
|
- MYSQL_DATABASE=tlc
|
|
- MYSQL_USER=tlc
|
|
- MYSQL_PASSWORD=tlc
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u tlc", "-p tlc"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
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: false
|
|
name: app-network |