Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
84 lines (80 loc) · 2.46 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
84 lines (80 loc) · 2.46 KB
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
# Copyright 2018-2021 Cargill Incorporated
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: "3.7"
services:
splinterd-node-0:
image: splinterd-node
expose:
- 8080
- 8043
- 8945
ports:
- 8080:8080
volumes:
- ./splinterd/sample_configs:/configs
- ./splinterd/sample_registries:/registries
build:
context: .
dockerfile: splinterd/Dockerfile-installed-${DISTRO}
args:
- REPO_VERSION=${REPO_VERSION}
- CARGO_ARGS=${CARGO_ARGS}
- SPLINTERD_ARGS=${SPLINTERD_ARGS}
entrypoint: |
bash -c "
if [ ! -f /acme.priv ]
then
splinter admin keygen acme
fi && \
if [ ! -s /etc/splinter/allow_keys ]
then
echo $$(cat /acme.pub) > /etc/splinter/allow_keys
fi && \
until PGPASSWORD=splinter_test psql -h splinter-db -U splinter_admin -d splinter -c '\q'; do
>&2 echo \"Database is unavailable - sleeping\"
sleep 1
done && \
splinter database migrate -C postgres://splinter_admin:splinter_test@splinter-db:5432/splinter && \
splinter cert generate --skip && \
splinterd \
-c ./configs/splinterd-node-0-docker.toml \
--registries file://./registries/registry.yaml \
--tls-insecure \
--enable-biome-credentials \
--database postgres://splinter_admin:splinter_test@splinter-db:5432/splinter \
$SPLINTERD_ARGS \
-vv
"
openapi-client:
image: openapi-client
container_name: openapi-client
expose:
- 80
ports:
- 9000:80
build:
context: .
dockerfile: splinterd/api/openapi.dockerfile
splinter-db:
image: postgres
container_name: splinter-db
restart: always
expose:
- 5432
ports:
- "5432:5432"
environment:
POSTGRES_USER: splinter_admin
POSTGRES_PASSWORD: splinter_test
POSTGRES_DB: splinter