-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (28 loc) · 884 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (28 loc) · 884 Bytes
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
version: "3"
services:
# The Cookie Factory backend in SpringBoot
tcf-server:
image: pcollet/tcf-spring-backend
container_name: server
environment:
- BANK_WITH_PORT=bank-system:9090
entrypoint: "bash -c '/wait-for-it.sh $${BANK_WITH_PORT} -- java -jar /app.jar --bank.host.baseurl=http://$${BANK_WITH_PORT}'"
depends_on:
- bank-system
# A simple java CLI
tcf-cli:
image: pcollet/tcf-spring-cli
container_name: cli
environment:
- SERVER_WITH_PORT=tcf-server:8080
entrypoint: "bash -c '/wait-for-it.sh $${SERVER_WITH_PORT} -- java -jar /app.jar --tcf.host.baseurl=http://$${SERVER_WITH_PORT}'"
depends_on:
- tcf-server
volumes:
- ./cli/demo.txt:/demo.txt
stdin_open: true
tty: true
# An external bank service in C#
bank-system:
image: pcollet/tcf-bank-service
container_name: bank