-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (34 loc) · 1.18 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3.5'
services:
httpd:
image: vergissberlin/wifi-button
build:
context: .
dockerfile: Dockerfile
args:
- SECRET_WIFI_SSID=${SECRET_WIFI_SSID}
- SECRET_WIFI_PASSWORD=${SECRET_WIFI_PASSWORD}
- SECRET_MQTT_HOST=${SECRET_MQTT_HOST}
- SECRET_MQTT_USERNAME=${SECRET_MQTT_USERNAME}
- SECRET_MQTT_PASSWORD=${SECRET_MQTT_PASSWORD}
- SECRET_MQTT_TOPIC=${SECRET_MQTT_TOPIC}
- SECRET_MQTT_PORT=${SECRET_MQTT_PORT}
- SECRET_MQTT_CLIENT_ID=${SECRET_MQTT_CLIENT_ID}
container_name: ${COMPOSE_PROJECT_NAME}-httpd
env_file:
- .env
labels:
- traefik.enable=true
- traefik.docker.network=${NETWORK}
- traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(${DOMAINS})
- traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=https
- traefik.http.routers.${COMPOSE_PROJECT_NAME}.tls=true
- traefik.http.routers.${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt
- traefik.http.services.${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=${PORT}
expose:
- ${PORT}
restart: unless-stopped
networks:
default:
external:
name: ${NETWORK}