This repository has been archived by the owner on Nov 29, 2021. It is now read-only.
generated from maehr/github-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
114 lines (106 loc) · 3.95 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "3"
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.5
environment:
- CF_API_EMAIL=${CLOUDFLARE_EMAIL}
- CF_API_KEY=${CLOUDFLARE_API_KEY}
command:
# Enables the web UI and tells Traefik to listen to docker
- --api.insecure=true
- --providers.docker=true
- --log=true
- --log.level=INFO # (Default: error) DEBUG, INFO, WARN, ERROR, FATAL, PANIC
- --accessLog=true
- --accessLog.filePath=/traefik.log
- --certificatesResolvers.dns-cloudflare.acme.email=$CLOUDFLARE_EMAIL
- --certificatesResolvers.dns-cloudflare.acme.storage=acme.json
- --certificatesResolvers.dns-cloudflare.acme.dnsChallenge=true
- --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.provider=cloudflare
# LetsEncrypt Staging Server - uncomment when testing
# - --certificatesResolvers.dns-cloudflare.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory
- --certificatesResolvers.dns-cloudflare.acme.dnsChallenge.resolvers=1.1.1.1:53,8.8.8.8:53
- --entryPoints.web.address=:80
- --entryPoints.websecure.address=:443
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/acme.json:/acme.json
- ./traefik/traefik.log:/traefik.log
labels:
- traefik.http.routers.traefik-rtr.tls=true
- traefik.http.routers.traefik-rtr.tls.certresolver=dns-cloudflare # Comment out this line after first run of traefik to force the use of wildcard certs
- traefik.http.routers.traefik-rtr.tls.domains[0].main=open-museum.ch
- traefik.http.routers.traefik-rtr.tls.domains[0].sans=*.open-museum.ch
restart: unless-stopped
janus:
build:
context: janus
ports: #HOST:CONTAINER
- 2095:8188 #ws
- 2096:8989 #wss
restart: unless-stopped
web:
image: openmuseum/web:0.0.7
restart: unless-stopped
labels:
- traefik.http.routers.web.rule=Host(`open-museum.ch`)
- traefik.http.routers.web.tls=true
- traefik.http.routers.web.tls.certresolver=dns-cloudflare
web-staging:
image: openmuseum/web:latest
restart: unless-stopped
labels:
- traefik.http.routers.web-staging.rule=Host(`staging.open-museum.ch`)
- traefik.http.routers.web-staging.tls=true
- traefik.http.routers.web-staging.tls.certresolver=dns-cloudflare
web-dev:
build:
context: web-dev
restart: unless-stopped
labels:
- traefik.http.routers.web-dev.rule=Host(`dev.open-museum.ch`)
- traefik.http.routers.web-dev.tls=true
- traefik.http.routers.web-dev.tls.certresolver=dns-cloudflare
minigame:
image: openmuseum/minigame:0.0.1
restart: unless-stopped
labels:
- traefik.http.routers.minigame.rule=Host(`minigame.open-museum.ch`)
- traefik.http.routers.minigame.tls=true
- traefik.http.routers.minigame.tls.certresolver=dns-cloudflare
omeka-web:
build:
context: omeka-web
volumes:
- ./omeka-web/files:/usr/src/omeka-s/files
- ./omeka-web/logs:/usr/src/omeka-s/logs
- ./omeka-web/modules:/usr/src/omeka-s/modules
- ./omeka-web/themes:/usr/src/omeka-s/themes
environment:
- EMAIL_HOST=${EMAIL_HOST}
- EMAIL_PORT=${EMAIL_PORT}
- EMAIL_USER=${EMAIL_USER}
- EMAIL_PASSWORD=${EMAIL_PASSWORD}
- EMAIL_CONNECTION_TYPE=${EMAIL_CONNECTION_TYPE}
depends_on:
- omeka-db
restart: unless-stopped
labels:
- traefik.http.routers.omeka-web.rule=Host(`collections.open-museum.ch`)
- traefik.http.routers.omeka-web.tls=true
- traefik.http.routers.omeka-web.tls.certresolver=dns-cloudflare
omeka-db:
image: mariadb:10.4
restart: always
volumes:
- ./omeka-db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}