-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.39 KB
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
# =============================================================================
# Deployment instructions for the Docker container
# =============================================================================
# This file is part of the FSFE Form Server.
#
# SPDX-FileCopyrightText: 2020 FSFE e.V. <contact@fsfe.org>
# SPDX-FileCopyrightText: 2019 Florian Vuillemot <florian.vuillemot@fsfe.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
services:
forms:
container_name: forms
image: forms
restart: always
depends_on:
- forms-redis
build:
context: .
target: production
environment:
FSFE_CD_PASSPHRASE: "${FSFE_CD_PASSPHRASE}"
FSFE_CD_TIMEOUT: 3
FSFE_CD_URL: "https://my.fsfe.org/"
LOG_EMAIL_FROM: "contact@fsfe.org"
LOG_EMAIL_TO: "contact@fsfe.org"
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: "contact@fsfe.org"
VALIDATE_EMAIL_HELO: "cont2.noris.fsfeurope.org"
volumes:
- "/srv/forms:/store"
# Reverse Proxy
labels:
proxy.host: "forms.fsfe.org"
proxy.port: "8700"
ports:
- "8700:8080"
forms-redis:
container_name: forms-redis
image: redis:8-alpine
restart: always
expose:
- "6379"