Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- ace-web:
- build:
- context: ./ace-frontend
- image: node:10.14.1
- ports:
- - 8081:8080
- command: bash -c "npm install && npm run serve"
- working_dir: /src
- volumes:
- - "./ace-frontend:/src"
- environment:
- HOST: 0.0.0.0
- db:
- build:
- context: ./ace-api
- image: mysql:5.6
- volumes:
- - api-mysql:/var/lib/mysql
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD: ace
- MYSQL_DATABASE: ace
- MYSQL_USER: ace
- MYSQL_PASSWORD: ace
- web:
- build:
- context: ./ace-api
- image: python:3.7
- ports:
- - 8082:8000
- command: bash -c "pip install -r requirements.txt && python manage.py runserver 0.0.0.0:8000"
- working_dir: /ace
- volumes:
- - "./ace-api:/ace"
- environment:
- HOST: 0.0.0.0
- volumes:
- api-mysql:
Add Comment
Please, Sign In to add comment