fix migration docker network

This commit is contained in:
Valerio Lomanto 2025-02-17 13:15:46 +01:00
parent 74038781d4
commit 43e7717e58
Signed by: verglasz
GPG key ID: 33263D8CFCFEC285

View file

@ -1,6 +1,7 @@
---
services:
# used to run the application
dev:
container_name: <%= @sso_service_name %>
hostname: <%= @sso_service_name %>
@ -30,6 +31,7 @@ services:
- default
- sso-proxy
# run migrations before starting the app
run-migrations:
container_name: <%= @sso_service_name %>-migrations
command: [ 'python3', 'manage.py', 'migrate' ]
@ -53,7 +55,7 @@ services:
- pocs-data:/app/stored_pocs
- "<%= @app_config_file %>:/app/config.yaml:ro"
networks:
- sso-proxy
- default
postgres: