forked from pretalx/pretalx-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (48 loc) · 1.18 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
version: '2'
services:
pretalx:
image: pretalx
container_name: pretalx
restart: unless-stopped
depends_on:
- redis
- db
ports:
- "80:80"
- "443:443"
volumes:
- ./conf/pretalx.cfg:/etc/pretalx/pretalx.cfg:ro
- pretalx-data:/data
- ./conf/certbot/www:/var/www/certbot
labels:
traefik.docker.network: "pretalxdocker"
traefik.enable: "true"
db:
image: mysql:5
container_name: pretalx-db
restart: unless-stopped
volumes:
- pretalx-db:/var/lib/mysql
environment:
MYSQL_DATABASE: pretalx
MYSQL_USER: pretalx
MYSQL_PASSWORD: veryunsecureplschange
MYSQL_RANDOM_ROOT_PASSWORD: "1"
redis:
image: redis:latest
container_name: pretalx-redis
restart: unless-stopped
volumes:
- pretalx-redis:/data
certbot:
image: certbot/certbot
container_name: certbot
restart: unless-stopped
volumes:
- ./conf/certbot/conf:/etc/letsencrypt
- ./conf/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
pretalx-db:
pretalx-data:
pretalx-redis: