install flyway
This commit is contained in:
@@ -1,2 +1 @@
|
||||
POSTGRES_USER=event-demo
|
||||
PGADMIN_DEFAULT_EMAIL=
|
||||
@@ -32,8 +32,20 @@ services:
|
||||
- "traefik.http.routers.redis.rule=Host(`redis.traefik.me`)"
|
||||
- "traefik.http.services.redis.loadbalancer.server.port=8001"
|
||||
|
||||
flyway:
|
||||
image: flyway/flyway
|
||||
container_name: "flyway"
|
||||
command: migrate
|
||||
depends_on:
|
||||
postgresql:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- ../migrations/events:/flyway/sql
|
||||
- ./flyway.conf:/flyway/conf/flyway.conf
|
||||
|
||||
postgresql:
|
||||
image: postgres:17.4
|
||||
container_name: "postgresql"
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
@@ -51,6 +63,7 @@ services:
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4
|
||||
container_name: "pgadmin"
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: $PGADMIN_DEFAULT_EMAIL
|
||||
PGADMIN_DEFAULT_PASSWORD_FILE: /run/secrets/pgadmin_password
|
||||
|
||||
4
docker/flyway.conf
Normal file
4
docker/flyway.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
flyway.url=jdbc:postgresql://postgresql:5432/event-demo
|
||||
flyway.user=event-demo
|
||||
flyway.password=changeit
|
||||
flyway.schemas=public
|
||||
Reference in New Issue
Block a user