forked from c4pr1c3/ac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (49 loc) · 1.32 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
version: "3"
services:
ac_flask:
build: .
container_name: ac_flask
#command: bash -c "python gen_selfsigned.py && python run.py -p 443"
command: bash -c "python run.py -p 443"
networks:
- overlay
volumes:
- ./src:/flask
ports:
- "127.0.0.1:443:443"
depends_on:
- "ac_flask_db"
environment:
DB_HOST: "ac_flask_db"
DB_USER: "root"
DB_PSW: "root"
DB_SCHEMA: "ac"
SSL_CN: "ac-flask-demo.me"
CSRF_KEY: "!!!----change-me-----!!!"
HTTPS_HOST: "0.0.0.0"
HTTPS_PORT: 443
IS_DEUBG: "True"
#SSL_PUB: "cert.pem"
SSL_PUB: "RootCA_crt.pem"
#SSL_PRIV: "key.pem"
SSL_PRIV: "RootCA_key.pem"
TOKEN_EXPIRED: 600
STORAGE_PATH: "storage/"
ALLOWED_SUFFIX: "'jpg', 'jpeg', 'png', 'bmp', 'gif', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'pdf'"
NACL_SK_PATH: "config/nacl_sk"
ac_flask_db:
container_name: ac_flask_db
image: mariadb:5.5
restart: always
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- overlay
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-proot"]
timeout: 10s
retries: 10
networks:
overlay: