Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # create service dari gitlab private repo
- docker login registry.gitlab.com
- docker service create \
- --with-registry-auth \
- --name nama_svc \
- --publish 81:3002 \
- --replicas=1 \
- --mount type=bind,source=/var/log/applog,destination=/logs \
- registry.gitlab.com/.../.../.../nama_image:latest
- # setelah itu tambahkan secret via portainer, overwrite .env dengan secret
- # create secret, copas isi .env ke secret
- # di service, add secret, pilih secret -> overide ke direktori root app (contoh: /usr/src/myapp/.env)
- # change image
- docker service update --image <new_image> <service_name>
- docker service update --image nginx:latest my_web_service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement