forked from BrainCOGS/U19-Data-Viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (39 loc) · 1.45 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
version: '3'
services:
apache:
env_file:
- .env
build:
context: ./apache
dockerfile: 'pni-apache.Dockerfile'
networks:
- proxy
- default
volumes:
- './apache/sites:/usr/local/apache2/conf/sites/:ro'
labels:
- "traefik.enable=true"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.entrypoints=http"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-https.entrypoints=https"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-https.tls=true"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-https.tls.certresolver=letsencrypt-resolver"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.middlewares=${COMPOSE_PROJECT_NAME}-redirectscheme@docker"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.rule=Host(`${SERVICEHOSTNAME}`)"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-https.rule=Host(`${SERVICEHOSTNAME}`)"
- "traefik.http.middlewares.${COMPOSE_PROJECT_NAME}-redirectscheme.redirectscheme.scheme=https"
- "traefik.http.middlewares.${COMPOSE_PROJECT_NAME}-redirectscheme.redirectscheme.permanent=true"
- "traefik.http.services.${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=80"
- "traefik.docker.network=proxy"
restart: unless-stopped
flask-root:
env_file:
- .env
build:
context: .
dockerfile: ./viewer/viewer.Dockerfile
expose:
- 5000
restart: unless-stopped
networks:
proxy:
external: true