Skip to content
Snippets Groups Projects
Commit 34065635 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

configuring docker

parent 85ce10b3
No related branches found
No related tags found
No related merge requests found
Pipeline #33358 passed
......@@ -34,11 +34,13 @@ git push -uf origin main
## Howto
### migrate database
### migrate database manually
- exec into the container
```
cd /src
python manage.py migrate --settings=ldvspec.settings
python manage.py migrate --settings=ldvspec.settings.docker_sdc
```
***
......
......@@ -14,6 +14,7 @@ RUN \
# collect the static files and make sure that the latest database migrations are done
CMD \
cd /src && \
python manage.py collectstatic --settings=ldvspec.settings.docker_sdc && \
python manage.py migrate --settings=ldvspec.settings.docker_sdc
......
......@@ -14,6 +14,7 @@ services:
expose:
- 5432
ports:
# enables an external database connection to sdc-dev.astron.nl:12000
- 12000:5432
networks:
- traefik_proxy
......@@ -25,7 +26,7 @@ services:
restart: always
ldv-specification:
container_name: ldvspec
container_name: ldv-specification
image: git.astron.nl:5000/astron-sdc/ldv-specification:latest
expose:
......@@ -35,7 +36,6 @@ services:
- ldv_network
labels:
- "traefik.enable=true"
#- "traefik.http.routers.ldv-specification.entryPoints=ldvspec"
- "traefik.http.routers.ldv-specification.entryPoints=websecure"
- "traefik.http.routers.ldv-specification.service=ldv-specification"
- "traefik.http.routers.ldv-specification.rule=Host(`sdc-dev.astron.nl`) && PathPrefix(`/ldvspec`)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment