-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
61 lines (58 loc) · 2.1 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
version: '3.7'
services:
postgres_refdata:
image: postgres:10-alpine
restart: on-failure
container_name: postgres_refdata
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
ports:
- 5433:5432
networks:
- db
public_refdata_flyway:
image: quay.io/ukhomeofficedigital/docker-flyway:0c81630decc5d7f6c6ec9070d7475b3f3f084153
container_name: public_refdata_flyway
command: /mnt/docker/run.sh
working_dir: /mnt
environment:
POSTGRES_DB: postgres
POSTGRES_SERVER: postgres_refdata
POSTGRES_PORT: 5432
FLYWAY_INIT_USER: postgres
FLYWAY_INIT_PASSWORD: mysecretpassword
FLYWAY_PLACEHOLDERS_REFERENCE_DB_NAME: reference
FLYWAY_PLACEHOLDERS_REFERENCE_OWNER_NAME: ownerreference
FLYWAY_PLACEHOLDERS_REFERENCE_OWNER_PASSWORD: mysecretpassword
FLYWAY_PLACEHOLDERS_REFERENCE_SCHEMA: reference
FLYWAY_PLACEHOLDERS_GOVERNANCE_OWNER_NAME: ownergovernance
FLYWAY_PLACEHOLDERS_GOVERNANCE_OWNER_PASSWORD: mysecretpassword
FLYWAY_PLACEHOLDERS_GOVERNANCE_SCHEMA: governance
FLYWAY_PLACEHOLDERS_REFERENCE_AUTHENTICATOR_USER: authenticatorreference
FLYWAY_PLACEHOLDERS_REFERENCE_AUTHENTICATOR_PASSWORD: auth1234
FLYWAY_PLACEHOLDERS_REFERENCE_ANON_USER: webanon
FLYWAY_PLACEHOLDERS_REFERENCE_SERVICE_USER: servicereference
FLYWAY_PLACEHOLDERS_REFERENCE_READONLY_USER: readonlyreference
FLYWAY_PLACEHOLDERS_GOVERNANCE_AUTHENTICATOR_USER: authenticatorgovernance
FLYWAY_PLACEHOLDERS_GOVERNANCE_AUTHENTICATOR_PASSWORD: auth1234
FLYWAY_PLACEHOLDERS_GOVERNANCE_ANON_USER: webanongovernance
FLYWAY_PLACEHOLDERS_GOVERNANCE_SERVICE_USER: servicegovernance
FLYWAY_PLACEHOLDERS_GOVERNANCE_READONLY_USER: readonlygovernance
volumes:
- ${PUBLIC_REFDATA_FLYWAY}:/mnt
depends_on:
- postgres_refdata
networks:
- db
networks:
db:
external:
name: db