-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
50 lines (45 loc) · 1.22 KB
/
docker-compose.yaml
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
version: '3'
services:
traefik:
image: "traefik:v2.5"
container_name: "traefik"
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
jacow_db:
image: postgres:12.0
container_name: jacow-db
environment:
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
POSTGRES_DB: '${POSTGRES_DB}'
volumes:
- jacow-db-vol:/var/lib/postgresql/data
ports:
- "5433:5432"
app:
build: .
image: app
container_name: app
environment:
JACOW_REFERENCES_PATH: /home/jacow/spms
SPMS_DEBUG: 'False'
DEV_DEBUG: 'False'
API_DB_HOST: jacow_db
API_DB_PORT: 5432
API_DB_USER: '${POSTGRES_USER}'
API_DB_PASS: '${POSTGRES_PASSWORD}'
API_DB_NAME: '${POSTGRES_DB}'
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`jacow.synchrotron.org.au`) || Host(`edit.ipac19.org`) || Host(`scan.jacow.org`)"
- "traefik.http.routers.whoami.entrypoints=web"
depends_on:
- jacow_db
volumes:
jacow-db-vol: