-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (62 loc) · 1.67 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
68
69
70
x-leprikon: &leprikon
image: qbsoftware/ddmmikulov
depends_on:
- mysql
- redis
- smtprelay
environment:
LEPRIKON_DOMAIN: www.ddmmikulov.cz
CMSPLUGIN_FILER_MIGRATED: yes
DATABASE_ENGINE: django.db.backends.mysql
DATABASE_HOST: ''
DATABASE_NAME: ddmmikulov
DATABASE_USER: ddmmikulov
DATABASE_PASSWORD: dbpassword
EMAIL_HOST: smtprelay
EMAIL_SUBJECT_PREFIX: '[DDM Mikulov]'
CACHE_LOCATION: unix:///var/run/redis/redis.sock
SECRET_KEY: secretkey
SENTRY_ENVIRONMENT: 'ddmmikulov'
SERVER_EMAIL: '"DDM Mikulov" <[email protected]>'
SUPERVISORD_RUN: "gunicorn cron"
volumes:
- ./data:/app/data
- ./media:/app/htdocs/media
- ./static:/app/htdocs/static
- ./run:/app/run
- mysql:/var/run/mysqld
- redis:/var/run/redis
services:
leprikon:
<<: *leprikon
build: .
leprikon-collectstatic:
<<: *leprikon
command: leprikon collectstatic --no-input
redis:
image: redis
command: bash -c "chmod 0777 /var/run/redis && redis-server --appendonly yes --unixsocket /var/run/redis/redis.sock --unixsocketperm 777"
volumes:
- ./redis:/data
- redis:/var/run/redis
mysql:
image: mariadb
environment:
MYSQL_DATABASE: ddmmikulov
MYSQL_USER: ddmmikulov
MYSQL_PASSWORD: dbpassword
MYSQL_ROOT_PASSWORD: rootdbpassword
volumes:
- mysql:/var/run/mysqld
- ./mysql:/var/lib/mysql
smtprelay:
image: juanluisbaptiste/postfix
environment:
SERVER_HOSTNAME: leprikon.cz
SMTP_SERVER: smtp.savana.cz
SMTP_PORT: 465
SMTP_USERNAME: [email protected]
SMTP_PASSWORD: emailpassword
volumes:
mysql:
redis: