-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (49 loc) · 1.46 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
# =============================================================================
# Deployment instructions for the Docker container
# =============================================================================
# This file is part of the FSFE Form Server.
#
# SPDX-FileCopyrightText: 2020 FSFE e.V. <[email protected]>
# SPDX-FileCopyrightText: 2019 Florian Vuillemot <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
version: "3"
services:
forms-redis:
image: bitnami/redis:6.2
container_name: forms-redis
expose:
- "6379"
environment:
ALLOW_EMPTY_PASSWORD: "yes"
restart: always
forms:
depends_on:
- forms-redis
image: forms
build:
target: production
context: .
container_name: forms
environment:
FSFE_CD_PASSPHRASE: "${FSFE_CD_PASSPHRASE}"
FSFE_CD_TIMEOUT: 3
FSFE_CD_URL: "https://my.fsfe.org/"
LOG_EMAIL_FROM: "[email protected]"
LOG_EMAIL_TO: "[email protected]"
MAIL_HELO_HOST: "cont2.noris.fsfeurope.org"
MAIL_SERVER: "mail.fsfe.org"
RATELIMIT_DEFAULT: "1 per second, 5 per minute, 20 per hour"
REDIS_HOST: "forms-redis"
REDIS_PORT: "6379"
VALIDATE_EMAIL_FROM: "[email protected]"
VALIDATE_EMAIL_HELO: "cont2.noris.fsfeurope.org"
volumes:
- "/srv/forms:/store:rw"
restart: always
# Reverse Proxy
labels:
proxy.host: "forms.fsfe.org"
proxy.port: "870"
ports:
- "870:8080"