Skip to content
Snippets Groups Projects

WIP: Upload docker-compose.yml with robotics builder services

2 unresolved threads
1 file
+ 10
0
Compare changes
  • Side-by-side
  • Inline
+ 10
0
version: '2'
services:
gitlab-runner:
image: "gitlab/gitlab-runner:latest"
    • The use of the tag latest is discouraged in production.

      Better specify here the known version to be running correctly (which now is v10.1.0).

Please register or sign in to reply
restart: always
    • I always prefer to set the restart policy to unless-stopped. If I stop the container manually, there must be some reason for it (maybe upgrading the image), and then I do not want it to be restarted automatically.

Please register or sign in to reply
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /srv/gitlab-runner/config:/etc/gitlab-runner
network_mode: "bridge"
command: ["--debug", "run", "--user=gitlab-runner", "--working-directory=/home/gitlab-runner"]
Loading