-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1.3 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
version: "3.9"
# TODO(sthwang): fix docker-compose
services:
app:
build:
context: .
dockerfile: Dockerfile
command:
- serve
- --debug
- --pretty
- --audit-log-path=/tmp/audit.log
environment:
GSA_DEVELOPMENT: ${GSA_DEVELOPMENT:-true}
GSA_NATS_URL: ${GSA_NATS_URL:-nats://nats-server:4222}
GSA_NATS_NKEY: ${GSA_NATS_NKEY:-./nats.nkey}
GSA_NATS_TOKEN: topSecret111
GSA_GOVERNOR_URL: ${GSA_GOVERNOR_URL:-http://api:3001}
GSA_GOVERNOR_CLIENT_ID: ${GSA_GOVERNOR_CLIENT_ID:-gov-slack-addon-governor}
GSA_GOVERNOR_AUDIENCE: ${GSA_GOVERNOR_AUDIENCE:-http://api:3001}/}
GSA_GOVERNOR_CLIENT_SECRET: ${GSA_GOVERNOR_CLIENT_SECRET}
GSA_GOVERNOR_TOKEN_URL: ${GSA_GOVERNOR_TOKEN_URL:-http://hydra:4444/oauth2/token}
ports:
- "8000:8000"
restart: unless-stopped
depends_on:
- audit
networks:
- governor_governor
volumes:
- type: volume
source: audit-log
target: /tmp
read_only: false
audit:
image: ghcr.io/metal-toolbox/audittail:v0.8.0
command: -f /tmp/audit.log
volumes:
- type: volume
source: audit-log
target: /tmp
read_only: false
restart: unless-stopped
volumes:
audit-log:
networks:
governor_governor:
external: true