-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
68 lines (62 loc) · 1.61 KB
/
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
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
version: '2.2'
services:
portunus_api:
build: ./portunus_api
environment:
FLASK_APP: wgpt.py
DATABASE_URL: "mysql+pymysql://wgpt:wgptpassword@db/wgpt"
TCP_WAIT: "db 3306"
SKIP_CREATE_DB: 0
depends_on:
- db
volumes:
- ./portunus_api/config.py:/wgpt/config.py
portunus_cd:
build: ./portunus_cd
environment:
FLASK_APP: wgpt_cd.py
DATABASE_URL: "mysql+pymysql://wgpt:wgptpassword@db/wgpt"
CERT_SSL_CA: "/certs/ca-cert.pem"
CERT_SSL_CA_KEY: "/certs/ca-key.pem"
CERT_SSL_SERVER: "/certs/server-cert.pem"
CERT_SSL_SERVER_KEY: "/certs/server-key.pem"
CERT_SSL_CHAIN: "/certs/chain-cert.pem"
TCP_WAIT: "db 3306"
depends_on:
- db
volumes:
- ./portunus_cd/config.py:/wgpt/config.py
- certs:/certs
webserver:
build: ./webserver
environment:
CERT_SSL_CA: "/certs/ca-cert.pem"
CERT_SSL_SERVER_KEY: "/certs/server-key.pem"
CERT_SSL_CHAIN: "/certs/chain-cert.pem"
# HTTP_USER and HTTP_PASSWORD are optional, if left blank access will be open
HTTP_USER: "admin"
HTTP_PASSWORD: "password"
ports:
- "1443:1443"
- "2443:2443"
depends_on:
- portunus_api
- portunus_cd
volumes:
- ./webserver/nginx.conf:/nginx.conf
- certs:/certs
db:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: mysqlroot
MYSQL_ROOT_HOST: "%"
MYSQL_USER: wgpt
MYSQL_PASSWORD: wgptpassword
MYSQL_DATABASE: wgpt
ports:
- "43306:3306"
volumes:
- db-data:/var/lib/mysql
volumes:
db-data:
certs: