From d7109a295d1ce4c2f5306855b62e3671ae08e551 Mon Sep 17 00:00:00 2001 From: LRVT <21357789+l4rm4nd@users.noreply.github.com> Date: Sun, 19 Feb 2023 07:06:41 +0100 Subject: [PATCH] Update docker-compose.yml --- 0_skeleton/docker-compose.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/0_skeleton/docker-compose.yml b/0_skeleton/docker-compose.yml index f825b4e..8bc5dfe 100644 --- a/0_skeleton/docker-compose.yml +++ b/0_skeleton/docker-compose.yml @@ -3,12 +3,16 @@ version: '3.3' services: example: image: user/image:tag - container_name: example-container-name + container_name: example + hostname: example + #user: 1000:1000 restart: unless-stopped - #ports: - # - 8080:2368 + ports: + - 8080:8080 volumes: - - /mnt/docker-volumes/example:/example + #- /etc/localtime:/etc/localtime:ro + #- /var/run/docker.sock:/var/run/docker.sock:ro + - /mnt/docker-volumes/example:/opt/example/data environment: - PUID=1000 - PGID=1000 @@ -20,7 +24,7 @@ services: # - traefik.http.routers.CHANGEME.rule=Host(`service.example.com`) # - traefik.http.services.CHANGEME.loadbalancer.server.port=8080 # - traefik.docker.network=proxy - # # Part for local lan services only; disable to expose externally + # # Part for optional traefik middlewares # - traefik.http.routers.CHANGEME.middlewares=local-ipwhitelist@file networks: