-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
executable file
·90 lines (85 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
version: '3.3'
services:
ci:
image: ghcr.io/internetofwater/nldi-db:ci
build:
context: .
dockerfile: ./database/ci/Dockerfile
args:
DOCKER_MIRROR: ${DOCKER_MIRROR}
LIQUIBASE_DOCKER_VERSION: ${LIQUIBASE_DOCKER_VERSION}
POSTGIS_DOCKER_VERSION: ${POSTGIS_DOCKER_VERSION}
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${NLDI_DATABASE_NAME}
- NLDI_DATABASE_NAME=${NLDI_DATABASE_NAME}
- NLDI_DB_OWNER_USERNAME=${NLDI_DB_OWNER_USERNAME}
- NLDI_DB_OWNER_PASSWORD=${NLDI_DB_OWNER_PASSWORD}
- NLDI_SCHEMA_OWNER_USERNAME=${NLDI_SCHEMA_OWNER_USERNAME}
- NLDI_SCHEMA_OWNER_PASSWORD=${NLDI_SCHEMA_OWNER_PASSWORD}
- NHDPLUS_SCHEMA_OWNER_USERNAME=${NHDPLUS_SCHEMA_OWNER_USERNAME}
- NLDI_READ_ONLY_USERNAME=${NLDI_READ_ONLY_USERNAME}
- NLDI_READ_ONLY_PASSWORD=${NLDI_READ_ONLY_PASSWORD}
- NLDI_DATABASE_ADDRESS=${NLDI_DATABASE_ADDRESS}
network_mode: "host"
ports:
- ${DB_CI_PORT}:5432
container_name: nldi-db-ci
demo:
image: ghcr.io/internetofwater/nldi-db:demo
build:
context: .
dockerfile: ./database/demo/Dockerfile
args:
DOCKER_MIRROR: ${DOCKER_MIRROR}
LIQUIBASE_DOCKER_VERSION: ${LIQUIBASE_DOCKER_VERSION}
POSTGIS_DOCKER_VERSION: ${POSTGIS_DOCKER_VERSION}
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${NLDI_DATABASE_NAME}
- NLDI_DATABASE_NAME=${NLDI_DATABASE_NAME}
- NLDI_DB_OWNER_USERNAME=${NLDI_DB_OWNER_USERNAME}
- NLDI_DB_OWNER_PASSWORD=${NLDI_DB_OWNER_PASSWORD}
- NLDI_SCHEMA_OWNER_USERNAME=${NLDI_SCHEMA_OWNER_USERNAME}
- NLDI_SCHEMA_OWNER_PASSWORD=${NLDI_SCHEMA_OWNER_PASSWORD}
- NHDPLUS_SCHEMA_OWNER_USERNAME=${NHDPLUS_SCHEMA_OWNER_USERNAME}
- NLDI_READ_ONLY_USERNAME=${NLDI_READ_ONLY_USERNAME}
- NLDI_READ_ONLY_PASSWORD=${NLDI_READ_ONLY_PASSWORD}
- NLDI_DATABASE_ADDRESS=${NLDI_DATABASE_ADDRESS}
network_mode: "host"
ports:
- ${DB_DEMO_PORT}:5432
container_name: nldi-db-demo
db:
image: ${DOCKER_MIRROR}postgis/postgis:12-3.0
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${NLDI_DATABASE_NAME}
network_mode: "host"
ports:
- ${DB_PORT}:5432
container_name: nldi-db
liquibase:
image: ghcr.io/internetofwater/nldi-db:liquibase
build:
context: ./liquibase
args:
DOCKER_MIRROR: ${DOCKER_MIRROR}
LIQUIBASE_DOCKER_VERSION: ${LIQUIBASE_DOCKER_VERSION}
network_mode: "host"
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${NLDI_DATABASE_NAME}
- NLDI_DATABASE_NAME=${NLDI_DATABASE_NAME}
- NLDI_DB_OWNER_USERNAME=${NLDI_DB_OWNER_USERNAME}
- NLDI_DB_OWNER_PASSWORD=${NLDI_DB_OWNER_PASSWORD}
- NLDI_SCHEMA_OWNER_USERNAME=${NLDI_SCHEMA_OWNER_USERNAME}
- NLDI_SCHEMA_OWNER_PASSWORD=${NLDI_SCHEMA_OWNER_PASSWORD}
- NHDPLUS_SCHEMA_OWNER_USERNAME=${NHDPLUS_SCHEMA_OWNER_USERNAME}
- NLDI_READ_ONLY_USERNAME=${NLDI_READ_ONLY_USERNAME}
- NLDI_READ_ONLY_PASSWORD=${NLDI_READ_ONLY_PASSWORD}
- NLDI_DATABASE_ADDRESS=${NLDI_DATABASE_ADDRESS}
volumes:
- ./liquibase/changeLogs:/liquibase/workspace/
- ./liquibase/scripts/dbInit:/docker-entrypoint-initdb.d
container_name: nldi-db-liquibase