Skip to content
Snippets Groups Projects
Commit 64d4d5be authored by Finn-Lucas Ziehe's avatar Finn-Lucas Ziehe
Browse files

Merge branch 'celery-dashboard' into 'master'

Add port mapping and stop container before deploy

See merge request !118
parents 18f7dbe4 041c85f4
No related branches found
No related tags found
1 merge request!118Add port mapping and stop container before deploy
Pipeline #46094 failed
......@@ -235,14 +235,14 @@ deploy-production:
script:
# deploy to server
- docker pull $APPIMAGE
- docker stop $APP_CONTAINER_NAME $CELERY_CONTAINER_NAME || true
- docker stop $APP_CONTAINER_NAME $CELERY_CONTAINER_NAME $CELERY_DASHBOARD_NAME|| true
- docker rm --force $APP_CONTAINER_NAME $CELERY_CONTAINER_NAME || true
# start application container
- docker run -d -p 127.0.0.1:2184:8000 --name=$APP_CONTAINER_NAME --network=$NETWORK_NAME --restart=always -v "${SHARED_VOLUME}" "${APPIMAGE}"
# start celery container
- docker run -d --name=$CELERY_CONTAINER_NAME --network=$NETWORK_NAME --restart=always -v "${SHARED_VOLUME}" "${APPIMAGE}" ${CELERY_START_CMD}
# start celery-dashboard container
- docker run -d --name=$CELERY_DASHBOARD_NAME --network=$NETWORK_NAME --restart=always -v "${SHARED_VOLUME}" "${APPIMAGE}" ${CELERY_DASHBOARD_CMD}
- docker run -d -p 127.0.0.1:2185:5555 --name=$CELERY_DASHBOARD_NAME --network=$NETWORK_NAME --restart=always "${APPIMAGE}" ${CELERY_DASHBOARD_CMD}
# uncomment to only deploy manually and not on every push
#when: manual
#allow_failure: false
......
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