fix migration docker network
This commit is contained in:
parent
74038781d4
commit
43e7717e58
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue