-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
41 lines (41 loc) · 1.15 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
version: '2'
services:
webapp:
build: ./webapp
ports:
- ${HTTP_PORT}:${HTTP_PORT}
- ${HTTPS_PORT}:${HTTPS_PORT}
volumes:
- ${HTTPS_CERT_VOLUME}:/etc/app/certificates
environment:
- HTTP_MODE=${HTTP_MODE}
- HTTP_PORT=${HTTP_PORT}
- HTTPS_ENABLED=${HTTPS_ENABLED}
- HTTPS_PORT=${HTTPS_PORT}
- HTTPS_KEYFILE=${HTTPS_KEYFILE}
- HTTPS_CERTFILE=${HTTPS_CERTFILE}
- DB_HOST=database
- DB_PORT=5432
- DB_NAME=terasologykeys
- DB_USER=terasologykeys_app
- DB_PASSWORD=${DB_PASSWORD}
- RECAPTCHA_SITE_KEY=${RECAPTCHA_SITE_KEY}
database:
build: ./sql
volumes:
- ${DB_BACKUP_VOLUME}:/var/terasologykeys_backups
environment:
- APP_USER_NAME=terasologykeys_app
- APP_USER_PASSWORD=${DB_PASSWORD}
- APP_HOSTNAME=webapp
- SMTP_SERVER=mailer
- SMTP_PORT=25
- SMTP_USER=${MAIL_FROM}
- SMTP_PASS=${MAIL_PASSWORD}
- RECAPTCHA_SECRET_KEY=${RECAPTCHA_SECRET_KEY}
- RESTORE_BACKUP_FILENAME=${DB_RESTORE_BACKUP_FILENAME}
mailer:
image: "catatnight/postfix:latest"
environment:
- smtp_user=${MAIL_FROM}:${MAIL_PASSWORD}
- maildomain=${MAIL_DOMAIN}