-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
134 lines (127 loc) · 3.33 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
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
version: '3.7'
services:
detector-db:
container_name: detector-db
image: postgres:13.1-alpine
environment:
POSTGRES_PASSWORD: secret
POSTGRES_DB: metal-detector
PGDATA: /var/lib/postgresql/data/db-files/
networks:
- detector-network
volumes:
- type: volume
source: detector-db-volume
target: /var/lib/postgresql/data
ports:
- "5432:5432"
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
butler-db:
container_name: detector-butler-db
image: postgres:13.1-alpine
environment:
POSTGRES_PASSWORD: secret
POSTGRES_DB: metal-release-butler
PGDATA: /var/lib/postgresql/data/db-files/
networks:
- butler-network
volumes:
- type: volume
source: butler-db-volume
target: /var/lib/postgresql/data
ports:
- "5433:5432"
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
butler-app:
container_name: butler-app
image: metaldetector/metal-release-butler:20220625T095023
environment:
DATASOURCE_URL: jdbc:postgresql://butler-db:5432/metal-release-butler
DATASOURCE_USERNAME: postgres
DATASOURCE_PASSWORD: secret
networks:
- butler-network
- service-network
volumes:
- type: volume
source: butler-image-volume
target: /app/images
- type: volume
source: butler-logs-volume
target: /app/logs
ports:
- "8095:8080"
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
auth-db:
container_name: detector-auth-db
image: postgres:13.1-alpine
environment:
POSTGRES_PASSWORD: secret
POSTGRES_DB: metal-detector-auth
PGDATA: /var/lib/postgresql/data/db-files/
networks:
- auth-network
volumes:
- type: volume
source: auth-db-volume
target: /var/lib/postgresql/data
ports:
- "5434:5432"
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
auth-app:
container_name: detector-auth-app
image: metaldetector/metal-detector-auth:20220625T094902
environment:
SERVER_PORT: 9000
DATASOURCE_URL: jdbc:postgresql://auth-db:5432/metal-detector-auth
DATASOURCE_USERNAME: postgres
DATASOURCE_PASSWORD: secret
AUTHORIZATION_SERVER_PRIVATE_KEY:
AUTHORIZATION_SERVER_PUBLIC_KEY:
METAL_DETECTOR_USER_CLIENT_ID: metal-detector-user
METAL_DETECTOR_USER_CLIENT_SECRET: userSecret
METAL_DETECTOR_ADMIN_CLIENT_ID: metal-detector-admin
METAL_DETECTOR_ADMIN_CLIENT_SECRET: adminSecret
IMPORT_JOB_CLIENT_ID: import-job
IMPORT_JOB_CLIENT_SECRET: importJobSecret
networks:
- auth-network
- service-network
ports:
- "9000:9000"
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
volumes:
detector-db-volume:
name: detector-db
butler-db-volume:
name: detector-butler-db
butler-image-volume:
name: detector-butler-images
butler-logs-volume:
name: detector-butler-logs
auth-db-volume:
name: detector-auth-db
networks:
detector-network:
name: detector-network
butler-network:
name: butler-network
auth-network:
name: auth-network
service-network:
name: service-network