Skip to content

Commit 503bdbd

Browse files
committed
style: comments above element
1 parent 416c1d6 commit 503bdbd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

compose.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
name: "traefik" # this is a compose example for Traefik
1+
name: "traefik"
22
services:
33
socket-proxy:
44
image: "11notes/socket-proxy:2.1.2"
55
read_only: true
6-
user: "0:0" # make sure to use the same UID/GID as the owner of your docker socket!
6+
# make sure to use the same UID/GID as the owner of your docker socket!
7+
user: "0:0"
78
volumes:
8-
- "/run/docker.sock:/run/docker.sock:ro" # mount host docker socket, the :ro does not mean read-only for the socket, just for the actual file
9-
- "socket-proxy:/run/proxy" # this socket is run as 1000:1000, not as root!
9+
# mount host docker socket, the :ro does not mean read-only for the socket, just for the actual file
10+
- "/run/docker.sock:/run/docker.sock:ro"
11+
# this socket is run as 1000:1000, not as root!
12+
- "socket-proxy:/run/proxy"
1013
restart: "always"
1114

1215
traefik:
@@ -22,10 +25,10 @@ services:
2225
- "--api.insecure=true"
2326
- "--log.level=INFO"
2427
- "--log.format=json"
25-
- "--providers.docker.exposedByDefault=false" # use docker provider but do not expose by default
28+
- "--providers.docker.exposedByDefault=false"
2629
- "--entrypoints.http.address=:80"
2730
- "--entrypoints.https.address=:443"
28-
- "--serversTransport.insecureSkipVerify=true" # do not verify downstream SSL certificates
31+
- "--serversTransport.insecureSkipVerify=true"
2932
ports:
3033
- "80:80/tcp"
3134
- "443:443/tcp"

0 commit comments

Comments
 (0)