2023-02-15 21:45:31 +00:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
example:
|
|
|
|
image: user/image:tag
|
2023-02-19 06:06:41 +00:00
|
|
|
container_name: example
|
|
|
|
hostname: example
|
|
|
|
#user: 1000:1000
|
2023-02-15 21:45:31 +00:00
|
|
|
restart: unless-stopped
|
2023-02-19 06:06:41 +00:00
|
|
|
ports:
|
2023-02-19 06:08:56 +00:00
|
|
|
- 8080:8080/tcp
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
2023-02-19 06:06:41 +00:00
|
|
|
#- /etc/localtime:/etc/localtime:ro
|
2023-02-19 06:08:17 +00:00
|
|
|
#- /etc/timezone:/etc/timezone:ro
|
2023-02-19 06:06:41 +00:00
|
|
|
#- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
- /mnt/docker-volumes/example:/opt/example/data
|
2023-02-15 21:45:31 +00:00
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- TZ=Europe/Berlin
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
|
|
|
# - traefik.http.routers.CHANGEME.rule=Host(`service.example.com`)
|
|
|
|
# - traefik.http.services.CHANGEME.loadbalancer.server.port=8080
|
|
|
|
# - traefik.docker.network=proxy
|
2023-02-19 06:06:41 +00:00
|
|
|
# # Part for optional traefik middlewares
|
2023-02-15 21:45:31 +00:00
|
|
|
# - traefik.http.routers.CHANGEME.middlewares=local-ipwhitelist@file
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|