-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (49 loc) · 1.47 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
version: '3.5'
services:
frontend:
image: ghcr.io/uninett/argus-frontend:1.14.1
environment:
- REACT_APP_BACKEND_URL=${ARGUS_BACKEND_URL}
- REACT_APP_ENABLE_WEBSOCKETS_SUPPORT=true
- REACT_APP_BACKEND_WS_URL=${ARGUS_BACKEND_WEBSOCKET_URL}
- REACT_APP_USE_SECURE_COOKIE=false
- REACT_APP_DEBUG=false
- REACT_APP_DEFAULT_AUTO_REFRESH_INTERVAL=30
- REACT_APP_REALTIME_SERVICE_MAX_RETRIES=5
- REACT_APP_COOKIE_DOMAIN=${ARGUS_DOMAIN}
depends_on:
- api
ports:
- "${ARGUS_FRONTEND_PORT}:8080"
api:
image: ghcr.io/uninett/argus:1.30.0
ports:
- "${ARGUS_BACKEND_PORT}:8000"
depends_on:
- postgres
- redis
environment:
- SECRET_KEY=${SECRET_KEY}
- TIME_ZONE=${TIME_ZONE}
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres/${POSTGRES_DB}
- ARGUS_FRONTEND_URL=${ARGUS_FRONTEND_URL}
- ARGUS_REDIS_SERVER=redis
- ARGUS_COOKIE_DOMAIN=${ARGUS_DOMAIN}
- STATIC_ROOT=static/
- EMAIL_HOST=${EMAIL_HOST}
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL}
- ARGUS_DATAPORTEN_KEY=notset
- ARGUS_DATAPORTEN_SECRET=notset
postgres:
image: "postgres:14"
volumes:
- postgres:/var/lib/postgresql/data:Z
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
redis:
image: "redis:latest"
volumes:
postgres:
driver: local