-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
51 lines (49 loc) · 1.34 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
# SPDX-FileCopyrightText: 2019 Free Software Foundation Europe e.V.
#
# SPDX-License-Identifier: GPL-3.0-or-later
version: "3.4"
services:
reuse-api:
container_name: reuse-api
image: reuse-api
logging:
driver: "json-file"
options:
max-file: 5
max-size: 100m
build:
context: .
target: prod
restart: always
environment:
FORMS_FILE: "/home/fsfe/repos.json"
FORMS_URL: "https://forms.fsfe.org/email"
NB_REPOSITORY_BY_PAGINATION: 10
NB_RUNNER: 6
REUSE_API: "wrk1.api.reuse.software"
SECRET_KEY: "${SECRET_KEY}"
ADMIN_KEY: "${ADMIN_KEY}"
SQLALCHEMY_DATABASE_URI: "postgresql://fsfe:${SECRET_KEY}@reuse-db/reuse"
SSH_KEY_PATH: "~/.ssh/reuse_ed25519"
SSH_KNOW_HOST_PATH: "~/.ssh/known_hosts"
SSH_PORT: 11122
SSH_USER: "reuse"
volumes:
- "${VM_VOLUME_PATH:-/srv/reuse-api}:${CONTAINER_VOLUME_PATH:-/home/fsfe}:rw"
ports:
- "6360:8000"
labels:
proxy.host: "api.reuse.software"
proxy.port: "6360"
reuse-db:
container_name: reuse-db
image: bitnami/postgresql:13
environment:
POSTGRESQL_USERNAME: fsfe
POSTGRESQL_PASSWORD: "${SECRET_KEY}"
POSTGRESQL_DATABASE: reuse
expose:
- "5432"
restart: always
volumes:
- "/srv/reuse-api/db:/bitnami/postgresql:rw"