First version of Docker compose, ugly
This commit is contained in:
75
dockercompose/docker-compose.yml
Normal file
75
dockercompose/docker-compose.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user