-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (31 loc) · 823 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (31 loc) · 823 Bytes
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
version: "3.9"
services:
pgsql-db:
image: "postgres:alpine"
environment:
POSTGRES_PASSWORD: "Password1234"
POSTGRES_DB: "my-database"
ports:
- "5432:5432"
networks:
- my-network
liquibase:
image: liquibase/liquibase
# cannot use absolute path (like /liquibase/changelog/changelog.xml), it has to be relative to /liquibase/.
command: --url=jdbc:postgresql://pgsql-db:5432/my-database --changeLogFile=./changelog/changelog.xml --username=postgres --password=Password1234 update
volumes:
- ./sql:/liquibase/changelog
networks:
- my-network
depends_on:
- pgsql-db
redis:
image: bitnami/redis:6.2
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- "6379:6379"
networks:
- my-network
networks:
my-network: