Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LDV Specification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
LDV Specification
Commits
34065635
Commit
34065635
authored
2 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
configuring docker
parent
85ce10b3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#33358
passed
2 years ago
Stage: build
Stage: deploy_to_test
Stage: deploy_to_production
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+4
-2
4 additions, 2 deletions
README.md
ldvspec/Dockerfile
+1
-0
1 addition, 0 deletions
ldvspec/Dockerfile
ldvspec/docker/docker-compose-dev-cd.yml
+2
-2
2 additions, 2 deletions
ldvspec/docker/docker-compose-dev-cd.yml
with
7 additions
and
4 deletions
README.md
+
4
−
2
View file @
34065635
...
...
@@ -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
```
***
...
...
This diff is collapsed.
Click to expand it.
ldvspec/Dockerfile
+
1
−
0
View file @
34065635
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
ldvspec/docker/docker-compose-dev-cd.yml
+
2
−
2
View file @
34065635
...
...
@@ -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
-
spec
ification
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`)"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment