-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.2 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
# SPDX-FileCopyrightText: 2019 Free Software Foundation Europe e.V.
#
# SPDX-License-Identifier: GPL-3.0-or-later
services:
reuse-api:
container_name: reuse-api
image: reuse-api
restart: always
build:
context: .
target: prod
environment:
FORMS_FILE: "/var/lib/reuse-api/forms/repos.json"
SECRET_KEY: "${SECRET_KEY}"
ADMIN_KEY: "${ADMIN_KEY}"
SQLALCHEMY_DATABASE_URI: "postgresql://fsfe:${SECRET_KEY}@reuse-db/reuse"
SSH_PORT: 11122
volumes:
- "${VM_VOLUME_PATH:-/srv/reuse-api}:${CONTAINER_VOLUME_PATH:-/var/lib/reuse-api}"
- "/srv/forms/reuse-api:/var/lib/reuse-api/forms:ro" # this file gets updated by forms
depends_on:
- reuse-db
ports:
- "6360:8000"
labels:
proxy.host: "api.reuse.software"
proxy.port: "6360"
logging:
driver: "json-file"
options:
max-file: 5
max-size: 100m
reuse-db:
container_name: reuse-db
image: postgres:17-alpine
restart: always
environment:
POSTGRES_USER: fsfe
POSTGRES_PASSWORD: "${SECRET_KEY}"
POSTGRES_DB: reuse
expose:
- "5432"
volumes:
- "/srv/reuse-api/db/data:/var/lib/postgresql/data"