Skip to content

Instantly share code, notes, and snippets.

@jk
Created May 25, 2022 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jk/c53b47576d48ece460ff694f95cc686a to your computer and use it in GitHub Desktop.
Save jk/c53b47576d48ece460ff694f95cc686a to your computer and use it in GitHub Desktop.
Traefik docker-compose network settings
version: '3.8'
services:
traefik:
image: traefik:v2.5.0-rc2
container_name: traefik
restart: always
environment:
- TZ=Asia/Taipei
ports:
- "80:80"
- "443:443/tcp"
- "443:443/udp"
volumes:
- ./conf:/etc/traefik
- ./log:/var/log/traefik
- ./ca:/ca
networks:
traefik:
ipv4_address: 172.100.0.1
networks:
traefik:
name: traefik
attachable: true
ipam:
config:
- subnet: 172.100.0.0/24
gateway: 172.100.0.254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment