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

ci/cd and docker - deploy in sdc-dev

parent 31ced332
No related branches found
No related tags found
No related merge requests found
Pipeline #33294 passed with warnings
......@@ -50,9 +50,8 @@ docker-deploy-master-test:
- chmod 644 ~/.ssh/known_hosts
script:
## deploy the docker-compose file and use it to spin up the containers
#- scp docker/docker-compose-dev-cd.yml sdc@sdc-dev.astron.nl:/docker_compose/ldvspec/docker-compose-dev-cd.yml
- scp docker/docker-compose-dev-cd.yml sdc@sdc-dev.astron.nl:/docker_compose/ldvspec/docker-compose-dev-cd.yml
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY"
#- docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker pull "$CI_REGISTRY_IMAGE""
- ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker-compose -p ldvspec -f /docker_compose/ldvspec/docker-compose-dev-cd.yml up -d"
- echo "Application deployed"
......
......@@ -11,15 +11,11 @@ services:
postgres-ldvspec:
image: postgres:14
container_name: postgres-ldvspec
ports:
- "5432:5432"
#ports:
# - "5432:5432"
networks:
- traefik_proxy
- ldv_network
environment:
POSTGRES_PASSWORD: "secret"
POSTGRES_USER: "postgres"
POSTGRES_DB: "ldv-spec-db"
env_file:
- $HOME/shared/ldvspec.env
volumes:
......@@ -28,7 +24,7 @@ services:
ldvspec:
container_name: ldvspec
image: git.astron.nl:5000/astron-sdc/ldvspec:latest
image: git.astron.nl:5000/astron-sdc/ldv-specification:latest
expose:
- "8000"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment