-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 900 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 900 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
33
34
35
36
services:
postgres:
build:
context: docker/postgres
image: cello-postgres:18.4
environment:
POSTGRES_DB: cello_dev
POSTGRES_USER: postgres
POSTGRES_PASSWORD: dev
ports:
- "5433:5432"
command: >
postgres
-c shared_preload_libraries=pgaudit
-c pgaudit.log=all
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d cello_dev"]
interval: 2s
timeout: 5s
retries: 5
start_period: 5s
flyway:
image: flyway/flyway:11.13.2
command: migrate
environment:
FLYWAY_URL: jdbc:postgresql://postgres:5432/cello_dev
FLYWAY_USER: postgres
FLYWAY_PASSWORD: dev
FLYWAY_LOCATIONS: filesystem:/flyway/sql
FLYWAY_CONNECT_RETRIES: 10
volumes:
- ./packages/directory/db/migrations:/flyway/sql
depends_on:
postgres:
condition: service_healthy