-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
45 lines (42 loc) · 1.29 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
version: "3"
services:
wahlrechner:
container_name: wahlrechner
image: ghcr.io/wahlrechner/wahlrechner:latest
command: bash -c 'docker/wait-for-it/wait-for-it.sh db:3306 -t 120 -- docker/startup-production.sh'
restart: always
volumes:
- ./data/static:/code/assets/
- ./data/media:/code/media/
- ./data/logs/wahlrechner:/code/logs/
- ./data/migrations/wahlrechner:/code/wahlrechner/migrations
- ./themes:/code/themes
- ./data/stats:/code/wahlrechner/stats
env_file:
- ./config/config.env
depends_on:
- db
db:
container_name: db
image: mariadb
restart: always
ports:
- "3306:3306"
env_file:
- ./config/config.env
volumes:
- ./data/mysql:/var/lib/mysql
web:
container_name: web
build:
context: web/apache
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./data/static:/wahlrechner/static
- ./data/media:/wahlrechner/media
- ./web/cert:/wahlrechner/cert
- ./data/logs/apache:/usr/local/apache2/logs
- /etc/letsencrypt:/etc/letsencrypt