-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
executable file
·106 lines (99 loc) · 1.92 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '3'
services:
front-envoy:
container_name: front-envoy
build:
context: .
dockerfile: Dockerfile-frontenvoy
volumes:
- ./front-envoy.yaml:/etc/front-envoy.yaml
networks:
- envoymesh
expose:
- "18000"
- "8001"
ports:
- "18000:18000"
- "8001:8001"
authz:
container_name: authz
build:
context: .
dockerfile: Dockerfile
networks:
envoymesh:
aliases:
- authz
environment:
- SPRING_PROFILES_ACTIVE=docker
restart: on-failure
expose:
- "8080"
- "8081"
ports:
- "8080:8080"
- "8081:8081"
depends_on:
- redis
- service1
- front-envoy
postgres:
container_name: postgres
image: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
envoymesh:
aliases:
- postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: authz
POSTGRES_USER: authz
POSTGRES_PASSWORD: password
service1:
container_name: service1
build:
context: .
dockerfile: Dockerfile.service
networks:
envoymesh:
aliases:
- service1
environment:
- SPRING_PROFILES_ACTIVE=docker
expose:
- "8002"
ports:
- "8002:8002"
depends_on:
- front-envoy
- redis
redis:
container_name: redis
image: 'bitnami/redis:latest'
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
labels:
kompose.service.type: nodeport
networks:
envoymesh:
aliases:
- redis
expose:
- "6379"
ports:
- '6379:6379'
volumes:
- 'redis_data:/bitnami/redis'
networks:
envoymesh:
name: envoymesh
volumes:
redis_data:
driver: local
postgres_data:
driver: local