-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-backend.yaml
31 lines (30 loc) · 1.08 KB
/
docker-compose-backend.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
version: '3.2'
services:
nginx:
image: rezamda/com.reza.sample.docker-nginx:latest
container_name: nginx
environment:
CONFD_BACKEND: 'http://vault-server:8200'
CONFD_BACKEND_TYPE: 'vault'
CONFD_APPROLE: 'read-config-approle'
volumes:
- ./share/secret/.read-config-approle_role_id:/vault/secret/.read-config-approle_role_id:ro
- ./share/secret/.read-config-approle_secret_id:/vault/secret/.read-config-approle_secret_id:ro
networks:
- http-default
tomcat:
image: rezamda/com.reza.sample.docker-tomcat:latest
container_name: tomcat
environment:
CONFD_BACKEND: 'http://vault-server:8200'
CONFD_BACKEND_TYPE: 'vault'
CONFD_APPROLE: 'read-config-approle'
volumes:
- ./share/secret/.read-config-approle_role_id:/vault/secret/.read-config-approle_role_id:ro
- ./share/secret/.read-config-approle_secret_id:/vault/secret/.read-config-approle_secret_id:ro
ports:
- "8080:8080"
networks:
- http-default
networks:
http-default: