homepage/docker-compose.yml

44 lines
961 B
YAML
Raw Normal View History

2022-08-02 15:07:02 +02:00
---
version: '3'
services:
reverse-proxy:
2022-07-18 17:40:05 +02:00
image: traefik:2.8.1
command: --api=false --api.dashboard=false --providers.docker
2022-08-02 15:08:18 +02:00
mem_limit: 64m
networks:
2022-08-02 15:07:02 +02:00
- internal-nw
- default
ports:
- 127.0.0.1:1314:80
restart: always
volumes:
# So that traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock:ro
homepage:
build:
context: .
image: homepage
2022-08-02 15:08:18 +02:00
mem_limit: 8m
networks:
2022-08-02 15:07:02 +02:00
- internal-nw
restart: always
labels:
- traefik.enable=true
- traefik.http.services.homepage.loadbalancer.server.port=1314
- traefik.http.routers.homepage.rule=Host(`localhost`) || Host(`127.0.0.1`) || Host(`homepage`) || Host(`6426tqrh4y5uobmo5y2csaip3m3avmjegd2kpa24sadekpxglbm34aqd.onion`)
2022-01-17 10:29:43 +01:00
logging:
driver: json-file
options:
max-size: "5m"
max-file: "5"
networks:
internal-nw:
internal: true
default:
2022-08-02 15:07:02 +02:00
...