-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-compose.yml
92 lines (87 loc) · 2.17 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
postgres:
image: postgres:15
environment:
# To avoid the following error:
#
# Error: Database is uninitialized and superuser password is not
# specified. You must specify POSTGRES_PASSWORD for the superuser. Use
# "-e POSTGRES_PASSWORD=password" to set it in "docker run".
#
# You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all
# connections without a password. This is *not* recommended. See
# PostgreSQL documentation about "trust"
POSTGRES_HOST_AUTH_METHOD: trust
conjur:
image: ${REGISTRY_URL:-docker.io}/cyberark/conjur:edge
command: server -a conjur
environment:
DATABASE_URL: postgres://postgres@postgres/postgres
CONJUR_DATA_KEY:
RAILS_ENV: development
depends_on:
- postgres
test-1.22:
build:
context: .
args:
FROM_IMAGE: "golang:1.22"
ports:
- 8080
depends_on:
- conjur
volumes:
- ./output:/conjur-api-go/output
environment:
CONJUR_DATA_KEY:
CONJUR_APPLIANCE_URL: http://conjur
CONJUR_ACCOUNT: conjur
CONJUR_AUTHN_LOGIN: admin
CONJUR_AUTHN_API_KEY:
GO_VERSION:
test-1.23:
build:
context: .
args:
FROM_IMAGE: "golang:1.23"
ports:
- 8080
depends_on:
- conjur
volumes:
- ./output:/conjur-api-go/output
environment:
CONJUR_DATA_KEY:
CONJUR_APPLIANCE_URL: http://conjur
CONJUR_ACCOUNT: conjur
CONJUR_AUTHN_LOGIN: admin
CONJUR_AUTHN_API_KEY:
GO_VERSION:
dev:
build:
context: .
args:
FROM_IMAGE: "golang:1.23"
ports:
- 8080
depends_on:
- conjur
volumes:
- .:/conjur-api-go
environment:
CONJUR_DATA_KEY:
CONJUR_APPLIANCE_URL: http://conjur
CONJUR_ACCOUNT: conjur
CONJUR_AUTHN_LOGIN: admin
CONJUR_AUTHN_API_KEY:
entrypoint: sleep
command: infinity
jwt-server:
image: "ghcr.io/stackitcloud/fake-jwt-server:v0.1.1"
ports:
- 8008
environment:
ISSUER: "jwt-server"
AUDIENCE: "conjur"
SUBJECT: "test-workload"
EMAIL: "workload@example.com"