This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
74 lines (64 loc) · 1.59 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3'
services:
crdb:
image: cockroachdb/cockroach:latest
command: start-single-node --insecure
environment:
COCKROACH_DATABASE: directory
ports:
- 26257:26257
- 8081:8080
volumes:
- ./.dc-data/crdb:/cockroach/cockroach-data
init-audit:
image: ghcr.io/metal-toolbox/audittail:v0.6.1
command: init -f /app-audit/audit.log
volumes:
- ./.dc-data/audit:/app-audit
audit:
image: ghcr.io/metal-toolbox/audittail:v0.6.1
command: -f /app-audit/audit.log
depends_on:
- init-audit
volumes:
- ./.dc-data/audit:/app-audit
restart: unless-stopped
nats:
image: nats:2-alpine
command:
- ash
- -ec
- |
# add single user with nkey
cat <<EOF > /etc/nats/nats-server.conf
server_name: local-dev
# Client port of 4222 on all interfaces
port: 4222
# HTTP monitoring port
monitor_port: 8222
jetstream: true
jetstream {
store_dir: /data/jetstream
max_mem: 10M
max_file: 1G
}
authorization: {
users: [{ nkey: $$(cat /nkey.pub) }]
}
EOF
# start nats server
nats-server -c /etc/nats/nats-server.conf
ports:
- 4222:4222
volumes:
- ./.dc-data/nkey.pub:/nkey.pub
mock-oauth2-server:
image: ghcr.io/navikt/mock-oauth2-server:0.5.8
environment:
LOG_LEVEL: 'debug'
SERVER_PORT: '8082'
JSON_CONFIG_PATH: /app/config.json
ports:
- 8082:8082
volumes:
- ./.dc-data/oauth2.json:/app/config.json