-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
35 lines (30 loc) · 992 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3'
# for debugging only, extend/override this file for production usage (if you are using docker-compose in production at all)
# also see the Dockerfile
services:
flask-app:
build: flask-app/
ports:
- "5000:5000" # app port
- "5001:5001" # app(debug) port
- "3000:3000" # remote debugger attach port
volumes:
- ./flask-app:/usr/src/app/
environment:
- FLASK_DEBUG=1
- FLASK_APP=app.py
- FLASK_ENV=development
#- DATABASE_URL=mysql://root:supersecretpassword@sqldb/your_awesome_db
command: flask run --host 0.0.0.0 # host=0.0.0.0 to make sure you can connect through Dockers networking
# you can add more services here, see the examples below
# sqldb:
# image: mariadb
# environment:
# MYSQL_ROOT_PASSWORD: supersecretpassword
# MYSQL_DATABASE: your_awesome_db
# sqlgui:
# image: adminer
# ports:
# - 9999:8080
# environment:
# - ADMINER_DEFAULT_SERVER=sqldb