-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
164 lines (153 loc) · 3.33 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
services:
server-node:
build: server/node/
profiles:
- node
environment:
- SERVER_PORT=4000
- OPA_URL=http://localhost:8181
- DATABASE_URL=postgresql://postgres:schmickethub@localhost:5432/postgres?schema=public
depends_on:
- database
- opa
network_mode: host
expose:
- 4000
server-csharp:
build: server/csharp/
profiles:
- csharp
environment:
OPA_URL: "http://localhost:8181"
DATABASE_CONN_STR: "Host=localhost;Database=postgres;Username=postgres;Password=schmickethub"
depends_on:
- database
- opa
network_mode: host
expose:
- 4000
server-aspnetcore:
build: server/aspnetcore/
profiles:
- aspnetcore
environment:
OPA_URL: "http://localhost:8181"
DATABASE_CONN_STR: "Host=localhost;Database=postgres;Username=postgres;Password=schmickethub"
depends_on:
- database
- opa
network_mode: host
expose:
- 4000
database:
image: postgres
restart: always
# set shared memory limit when using docker-compose
shm_size: 128mb
volumes:
- "./server/node/database/init.sql:/docker-entrypoint-initdb.d/init.sql"
environment:
POSTGRES_PASSWORD: schmickethub
network_mode: host
expose:
- 5432
# For manual debugging of the Postgres DB.
# adminer:
# image: adminer
# restart: always
# network_mode: host
# expose:
# - 8080
server-java:
build: server/java/
init: true
environment:
- OPA_URL=http://opa:8181
ports:
- "4000:4000"
profiles:
- java
depends_on:
- opa
server-springboot:
build: server/springboot/
init: true
environment:
# TODO: figure out how to get Spring to accept db URL from env
#- OPA_URL=http://opa:8181
- OPA_URL=http://localhost:8181
network_mode: host
#ports:
# - "4000:8080"
expose:
- 4000
profiles:
- springboot
depends_on:
- database
- opa
client-html:
build: client/html/
profiles:
- html
environment:
SERVER_HOST: localhost
SERVER_PORT: 4000
CLIENT_HOST: 127.0.0.1
CLIENT_SERVER: 3000
network_mode: host
expose:
- 3000
client-react:
build: client/react/
profiles:
- react
network_mode: host
expose:
- 3000
depends_on:
- proxy-react
proxy-react:
image: caddy:latest
network_mode: host
volumes:
- ${PWD}/caddy/Caddyfile-local:/etc/caddy/Caddyfile
expose:
- 4001
depends_on:
- opa
opa:
init: true
build:
context: .
dockerfile: ${OPA_DOCKERFILE-opa.Dockerfile}
ports:
- "8181:8181"
command:
- run
- --server
- --addr=:8181
- --log-level=debug
- --bundle
- bundle.tar.gz
working_dir: /
volumes:
- ./policies:/policies
environment:
EOPA_LICENSE_KEY: ${EOPA_LICENSE_KEY}
integration-tests:
image: ghcr.io/orange-opensource/hurl:latest
volumes:
- ./tests:/tests
command:
- --test
- --retry=10
- --verbose
- --report-junit=tests/api/report.xml
- tests/api/
environment:
- HURL_host=localhost
- HURL_skip_conditions=${HURL_SKIP_CONDITIONS:-true}
profiles:
- tools
network_mode: host