-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
38 lines (36 loc) · 941 Bytes
/
docker-compose.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
32
33
34
35
36
37
38
version: "3"
services:
postgres-multimodal:
build:
context: .
dockerfile: Dockerfile
args:
- PG_VERSION=12
- TIMESCALE_VERSION=2.11
- APACHE_AGE_VERSION=1.3.0
environment:
- POSTGRES_PASSWORD=password
command:
- postgres
- -c
- config-file=/etc/postgresql.conf
volumes:
- ./migrations/:/migrations/
networks:
- postgres-multimodal
ports:
- "5434:5432"
liquibase:
image: liquibase/liquibase
command: --hub-mode=off --headless=true --changeLogFile=changelog/root.changelog.xml --url=jdbc:postgresql://postgres-multimodal:5432/postgres --username=postgres --password=password update
volumes:
- ./migrations/:/liquibase/changelog
depends_on:
- postgres-multimodal
links:
- postgres-multimodal
networks:
- postgres-multimodal
restart: on-failure
networks:
postgres-multimodal: