mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-23 08:43:40 +01:00
fix: replace /var/run
by /run
The use of `/var/run` was deprecated by FHS 3.0 nine years ago, so it's time to finally get rid of it where possible. The canonical directory for run-time variable data is `/run` nowadaya,s with `/var/run` just being a symbolic link for backward compatibilty and to ease transition.
This commit is contained in:
parent
5692406a50
commit
38e065c218
@ -16,6 +16,6 @@
|
|||||||
ports:
|
ports:
|
||||||
- "9443:9443"
|
- "9443:9443"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /run/docker.sock:/var/run/docker.sock
|
||||||
- portainer-data:/data
|
- portainer-data:/data
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /run/docker.sock:/run/docker.sock
|
||||||
- /etc/traefik:/etc/traefik
|
- /etc/traefik:/etc/traefik
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
become: true
|
become: true
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- name: Check if system reboot is required
|
- name: Check if system reboot is required
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: /var/run/reboot-required
|
path: /run/reboot-required
|
||||||
register: reboot_required
|
register: reboot_required
|
||||||
|
|
||||||
- name: Report if reboot is required
|
- name: Report if reboot is required
|
||||||
|
@ -94,7 +94,7 @@ services:
|
|||||||
# user: root
|
# user: root
|
||||||
volumes:
|
volumes:
|
||||||
# (Optional) When using the docker socket integration
|
# (Optional) When using the docker socket integration
|
||||||
# - /var/run/docker.sock:/var/run/docker.sock
|
# - /run/docker.sock:/run/docker.sock
|
||||||
- ./media:/media
|
- ./media:/media
|
||||||
- ./certs:/certs
|
- ./certs:/certs
|
||||||
- ./custom-templates:/templates
|
- ./custom-templates:/templates
|
||||||
|
@ -7,7 +7,7 @@ services:
|
|||||||
- 8080:8080
|
- 8080:8080
|
||||||
volumes:
|
volumes:
|
||||||
- /:/rootfs:ro
|
- /:/rootfs:ro
|
||||||
- /var/run:/var/run:ro
|
- /run:/run:ro
|
||||||
- /sys:/sys:ro
|
- /sys:/sys:ro
|
||||||
- /var/lib/docker/:/var/lib/docker:ro
|
- /var/lib/docker/:/var/lib/docker:ro
|
||||||
- /dev/disk/:/dev/disk:ro
|
- /dev/disk/:/dev/disk:ro
|
||||||
|
@ -5,7 +5,7 @@ services:
|
|||||||
image: refactr/runner-pool:v0.146.0
|
image: refactr/runner-pool:v0.146.0
|
||||||
user: root
|
user: root
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /run/docker.sock:/run/docker.sock
|
||||||
- ./config.json:/etc/runner-agent.json
|
- ./config.json:/etc/runner-agent.json
|
||||||
# stdin_open: true
|
# stdin_open: true
|
||||||
# tty: true
|
# tty: true
|
||||||
|
@ -29,5 +29,5 @@ services:
|
|||||||
# ports:
|
# ports:
|
||||||
# - 127.0.0.1:2375:2375
|
# - 127.0.0.1:2375:2375
|
||||||
# volumes:
|
# volumes:
|
||||||
# - /var/run/docker.sock:/var/run/docker.sock:ro # Mounted as read-only
|
# - /run/docker.sock:/run/docker.sock:ro # Mounted as read-only
|
||||||
# restart: unless-stopped
|
# restart: unless-stopped
|
||||||
|
@ -8,7 +8,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 9001:9001
|
- 9001:9001
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /run/docker.sock:/var/run/docker.sock
|
||||||
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
||||||
networks:
|
networks:
|
||||||
- portainer-agent_default
|
- portainer-agent_default
|
||||||
|
@ -11,6 +11,6 @@ services:
|
|||||||
- 9443:9443
|
- 9443:9443
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /run/docker.sock:/var/run/docker.sock
|
||||||
- portainer-data:/data
|
- portainer-data:/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -13,7 +13,7 @@ services:
|
|||||||
# -- (Optional) Enable Dashboard, don't do in production
|
# -- (Optional) Enable Dashboard, don't do in production
|
||||||
# - 8080:8080
|
# - 8080:8080
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /run/docker.sock:/run/docker.sock:ro
|
||||||
- ./config/traefik.yaml:/etc/traefik/traefik.yaml:ro
|
- ./config/traefik.yaml:/etc/traefik/traefik.yaml:ro
|
||||||
- ./config/conf/:/etc/traefik/conf/
|
- ./config/conf/:/etc/traefik/conf/
|
||||||
- ./config/certs/:/etc/traefik/certs/
|
- ./config/certs/:/etc/traefik/certs/
|
||||||
|
Loading…
Reference in New Issue
Block a user