2023-02-15 21:45:31 +00:00
|
|
|
services:
|
|
|
|
example:
|
|
|
|
image: user/image:tag
|
2023-02-19 06:06:41 +00:00
|
|
|
container_name: example
|
|
|
|
hostname: example
|
|
|
|
#user: 1000:1000
|
2023-09-26 09:54:53 +00:00
|
|
|
#depends_on:
|
|
|
|
# - xxx
|
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-09-27 10:26:20 +00:00
|
|
|
expose:
|
|
|
|
- 8080
|
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
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/example:/opt/example/data
|
2023-02-15 21:45:31 +00:00
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
2024-01-10 11:02:10 +00:00
|
|
|
- TZ=Europe/Berlin
|
2023-02-26 03:03:48 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
2023-11-05 14:47:06 +00:00
|
|
|
# - traefik.docker.network=proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
# - traefik.http.routers.CHANGEME.rule=Host(`service.example.com`)
|
|
|
|
# - traefik.http.services.CHANGEME.loadbalancer.server.port=8080
|
2024-01-10 11:10:56 +00:00
|
|
|
# # Optional part when proxying to services that already provide ssl/tls
|
2024-01-10 11:03:28 +00:00
|
|
|
# - traefik.http.services.CHANGEME.loadbalancer.server.scheme=https
|
|
|
|
# - traefik.http.services.CHANGEME.loadbalancer.serverstransport=insecureTransport@file
|
2024-01-10 11:02:10 +00:00
|
|
|
# # Optional part for file upload max sizes
|
|
|
|
# - traefik.http.middlewares.limit.buffering.maxRequestBodyBytes=50000000
|
|
|
|
# - traefik.http.middlewares.limit.buffering.maxResponseBodyBytes=50000000
|
|
|
|
# - traefik.http.middlewares.limit.buffering.memRequestBodyBytes=50000000
|
|
|
|
# - traefik.http.middlewares.limit.buffering.memResponseBodyBytes=50000000
|
|
|
|
# # Optional part for traefik middlewares
|
2024-10-01 08:23:34 +00:00
|
|
|
# - traefik.http.routers.CHANGEME.middlewares=local-ipwhitelist@file
|
2023-02-15 21:45:31 +00:00
|
|
|
|
2023-02-26 03:03:48 +00:00
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|