-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (51 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
53 lines (51 loc) · 1.19 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
services:
db:
image: mariadb:11
restart: always
mem_limit: 1g
environment:
MARIADB_ROOT_PASSWORD: bugstore_root
MARIADB_DATABASE: bugstore
MARIADB_USER: bugstore
MARIADB_PASSWORD: bugstore
volumes:
- mariadb_data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
app:
build: .
restart: always
read_only: true
security_opt:
- no-new-privileges:true
pids_limit: 256
mem_limit: 2g
cpus: 2.0
tmpfs:
- /tmp:size=100M
- /run:size=10M
- /root:size=10M
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: "mysql+pymysql://bugstore:bugstore@db:3306/bugstore"
BUGSTORE_WAF_ENABLED: "false"
BUGSTORE_SCORING_ENABLED: "true"
BUGSTORE_AUTO_SEED: "true"
BUGSTORE_WORKERS: "2"
BUGSTORE_TIMEOUT: "30"
BUGSTORE_REQUEST_TIMEOUT: "10"
XDG_CONFIG_HOME: "/tmp/caddy-config"
ports:
- "80:80"
- "443:443"
volumes:
- caddy_data:/data/caddy
volumes:
mariadb_data:
caddy_data: