-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
openproject.yml
71 lines (65 loc) · 2.15 KB
/
openproject.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3.8'
x-openproject-labels: &openproject-labels
labels:
- traefik.enable=true
- traefik.docker.network=openproject
- traefik.http.routers.openproject-http.rule=Host(`openproject.${DOMAIN?Variable DOMAIN not set}`)
- traefik.http.routers.openproject-http.entrypoints=http
- traefik.http.routers.openproject-http.service=openproject
- traefik.http.routers.openproject-http.middlewares=https-redirect
- traefik.http.routers.openproject-https.rule=Host(`openproject.${DOMAIN?Variable DOMAIN not set}`)
- traefik.http.routers.openproject-https.entrypoints=https
- traefik.http.routers.openproject-https.tls=true
- traefik.http.routers.openproject-https.service=openproject
- traefik.http.routers.openproject-https.tls.certresolver=le
- traefik.http.services.openproject.loadbalancer.server.port=80
x-service: &service
logging:
driver: json-file
options:
max-size: "100m"
max-file: "2"
restart: always
networks:
- openproject
- database
services:
# https://www.openproject.org/docs/installation-and-operations/installation/docker/
openproject:
container_name: openproject
image: openproject/community:12
deploy:
mode: replicated
replicas: 1
resources:
reservations:
cpus: '0.01'
memory: 1400M
<<: *openproject-labels
<<: *openproject-labels
<<: *service
environment:
DATABASE_URL: "postgres://openproject:${OPENPROJECT_SQL_PASSWORD?Variable OPENPROJECT_SQL_PASSWORD not set}@postgres:5432/openproject"
SERVER_HOSTNAME: openproject.${DOMAIN?Variable DOMAIN not set}
SECRET_KEY_BASE: ${MASTER_IP?Variable MASTER_IP not set} # just random unique data
volumes:
- openproject-data:/var/lib/openproject
x-volume: &volume
driver: local
x-volume-driver-opts: &volume-driver-opts
type: none
o: bind
volumes:
openproject-data:
name: openproject-data
<<: *volume
driver_opts:
<<: *volume-driver-opts
device: ${DATAPATH?Variable DATAPATH not set}/openproject/data
networks:
openproject:
name: openproject
external: true
database:
name: database
external: true