homepage/docker-compose.yaml
2024-03-15 05:41:12 +00:00

71 lines
1.7 KiB
YAML

version: '3'
services:
traefik:
image: "docker.io/traefik:latest"
container_name: "traefik"
hostname: traefik
networks:
- lab-net
restart: always
expose:
- "80"
- "443"
- "8080"
command:
- "--configFile=/etc/traefik/dynamic/traefik.yaml"
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- "./config/traefik/traefik.yaml:/etc/traefik/dynamic/traefik.yaml"
- "./config/traefik/router.yaml:/etc/traefik/dynamic/conf/router.yaml"
- "./volumes/traefik/letsencrypt:/letsencrypt"
- "./volumes/traefik/cert/:/certs/"
labels:
- "traefik.enable=true"
iot-web-server:
# build: ./webserver
image: hub.godopu.com/pu-webserver:latest
hostname: iot-web-server
networks:
- lab-net
container_name: iot-web-server
restart: always
depends_on:
- authelia-app
- traefik
volumes:
- "/home/sjkoh/www:/home/www"
openvscode-server:
image: gitpod/openvscode-server:latest
container_name: "openvscode-server"
restart: unless-stopped
hostname: openvscode-server
networks:
- lab-net
volumes:
- "/home/sjkoh/www:/home/workspace"
entrypoint:
- "/home/.openvscode-server/bin/openvscode-server"
- "--host=0.0.0.0"
- "--without-connection-token"
# - "--connection-token=6b97db13-f2e3-41bb-a3a5-a18fdd1369e5"
authelia-app:
image: authelia/authelia:latest
container_name: authelia-app
hostname: authelia-app
networks:
- lab-net
restart: unless-stopped
ports:
- 9091:9091
volumes:
- ./config/authelia:/config
networks:
lab-net: null