-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
73 lines (66 loc) · 1.5 KB
/
compose.yaml
File metadata and controls
73 lines (66 loc) · 1.5 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
mariadb:
image: mariadb:latest
container_name: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
TZ: Europe/London
ports:
- "3306:3306"
volumes:
- mariadb_data:/var/lib/mysql
- ./initdb:/docker-entrypoint-initdb.d
nginx:
image: nginx:latest
container_name: nginx
restart: always
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./html:/usr/share/nginx/html:ro
adminer:
image: adminer
restart: always
ports:
- 8080:8080
flask_app:
build: .
container_name: flask_app
restart: always
ports:
- "5000:5000"
command: ["flask", "run", "--host=0.0.0.0", "--port=5000"]
environment:
- FLASK_APP=main.py
- FLASK_DEBUG=1
- PYTHONDONTWRITEBYTECODE=1
- DB_HOST=${DB_HOST}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- API_TOKEN=${API_TOKEN}
- USER_KEY=${USER_KEY}
- IP_RELE=${IP_RELE}
- WDB_SOCKET_SERVER=wdb
- WDB_NO_BROWSER_AUTO_OPEN=True
- MY_EMAIL=${MY_EMAIL}
- EMAIL_PASSWORD=${EMAIL_PASSWORD}
depends_on:
- mariadb
volumes:
- .:/ppp
wdb:
image: kozea/wdb
ports:
- "127.0.0.1:5001:1984"
init: true
volumes:
mariadb_data:
networks:
ppp_net:
driver: bridge