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