generated from VSLCatena/docker-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1.14 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
37
38
39
40
41
42
43
networks:
net:
driver: bridge
ipam:
config:
- subnet: '${SUBNET:-192.168.32.0/29}'
driver_opts:
com.docker.network.bridge.name: ledenteller_net
volumes:
data:
driver: local
services:
ledenteller.php:
labels:
- "traefik.enable=true"
- "traefik.http.routers.${PROJECT}.rule=Host(`${PROJECT_FQDN}`)"
- "traefik.http.routers.${PROJECT}.entrypoints=${PROJECT_ENTRYPOINT}"
container_name: ledenteller.php
hostname: php
image: 'ghcr.io/vslcatena/docker-ledenteller:latest'
pull_policy: if_not_present
build:
context: ./src
dockerfile: Dockerfile
environment:
TZ: 'Europe/Amsterdam'
LOGIN_INFORMATION: ${LOGIN_INFORMATION:-SomePassword}
USE_USERNAME: ${USE_USERNAME:-0}
LOGOUT_URL: ${LOGOUT_URL:-"about://blank"}
TIMEOUT_MINUTES: ${TIMEOUT_MINUTES:-30}
TIMEOUT_CHECK_ACTIVITY: ${TIMEOUT_CHECK_ACTIVITY:-1}
restart: unless-stopped
tty: true
ports:
- '${PROJECT_IP:-0.0.0.0}:${PROJECT_PORT:-8128}:80'
volumes:
- '/etc/localtime:/etc/localtime:ro'
- data:/var/www/html/data
networks:
- net