-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (59 loc) · 2.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (59 loc) · 2.04 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#version: "3" #this gives obsolete warning
services:
diffcellsig-db:
image: postgres:17
restart: always
env_file:
- .env
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "5436:5432"
volumes:
- ./data/pg-data:/var/lib/postgresql/data
- ./data/ingest_data:/ingest_data
networks:
- web
diffcellsig-app:
image: registry.gitlab.tugraz.at/hereditary/diffcellsig:latest
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
- DB_HOST=diffcellsig-db
- DB_PORT=5432
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DATA_DIR=/app/data
# ports:
# - "8000:8000"
depends_on:
- diffcellsig-db
volumes:
- ./data:/app/data
networks:
- web
labels:
# Traefik configuration, Hostname needs to be changed
- traefik.http.routers.diffcellsig-http.rule=Host(`hereditary.cgv.tugraz.at`) && PathPrefix(`/differential-cell-signaling/`)
- traefik.http.routers.diffcellsig-http.entrypoints=http
- traefik.http.routers.diffcellsig-https.rule=Host(`hereditary.cgv.tugraz.at`) && PathPrefix(`/differential-cell-signaling/`)
- traefik.http.routers.diffcellsig-https.entrypoints=https
- traefik.http.routers.diffcellsig-https.tls=true
- traefik.http.routers.diffcellsig-https.tls.certresolver=letsencrypt
- "traefik.http.routers.diffcellsig-http.middlewares=redirect,diffcellsig_sp@docker"
- "traefik.http.routers.diffcellsig-https.middlewares=redirect,diffcellsig_sp@docker"
- "traefik.http.middlewares.diffcellsig_sp.stripprefix.prefixes=/differential-cell-signaling"
- "traefik.http.middlewares.diffcellsig_sp.stripprefix.forceSlash=false"
- traefik.http.middlewares.redirect.redirectscheme.scheme=https
- traefik.http.services.diffcellsig.loadbalancer.server.port=8000
volumes:
pg-data:
external: false
networks:
web:
external: true