This commit is contained in:
29
docker/.env
Normal file
29
docker/.env
Normal file
@@ -0,0 +1,29 @@
|
||||
WEB_PORT=10001:80
|
||||
|
||||
LOGO_URL=logo.png
|
||||
TITLE=Parking Page
|
||||
SHOW_TITLE=true
|
||||
SUBTEXT=Under Construction
|
||||
|
||||
EMAIL=email@example.com
|
||||
LINK_EMAIL=mailto:email@example.com
|
||||
|
||||
PHONE=+55 11 9XXXX-XXXX
|
||||
LINK_PHONE=https://wa.me/55119XXXXXXXX
|
||||
|
||||
CREDIT_LOGO_URL=https://s3.sa-east-1.amazonaws.com/envio.icc.gg/logo_256x256-7ds3h.png
|
||||
CREDIT_LINK=https://ivancarlos.com.br/
|
||||
|
||||
FAVICON_PNG_URL=/favicon-96x96.png
|
||||
FAVICON_SVG_URL=/favicon.svg
|
||||
FAVICON_ICO_URL=/favicon.ico
|
||||
APPLE_TOUCH_ICON_URL=/apple-touch-icon.png
|
||||
|
||||
CONTACT_LINK1=mailto:security@example.com
|
||||
CONTACT_LINK2=https://example.com/security
|
||||
CONTACT_LINK3=https://example.com/contact
|
||||
|
||||
LANG=pt, en, es
|
||||
POLICY=https://example.com/secpolicy
|
||||
|
||||
EXPIREDATE_ISO=2034-04-15T15:00:00.000Z
|
||||
43
docker/docker-compose-full.yml
Normal file
43
docker/docker-compose-full.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
name: parkingpage
|
||||
|
||||
services:
|
||||
parkingpage:
|
||||
image: ghcr.io/ivancarlosti/parkingpage:latest
|
||||
env_file: .env
|
||||
container_name: parkingpage
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.php.rule=Host(`subdomain.example.com`)" ### CHANGE subdomain.example.com TO YOUR DOMAIN ###
|
||||
- "traefik.http.routers.php.entrypoints=websecure"
|
||||
- "traefik.http.routers.php.tls.certresolver=letsencrypt"
|
||||
networks:
|
||||
- web
|
||||
|
||||
traefik:
|
||||
image: traefik:latest
|
||||
container_name: parkingpage-traefik
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./traefik:/etc/traefik
|
||||
command:
|
||||
- --api.dashboard=true
|
||||
- --providers.docker=true
|
||||
- --providers.docker.exposedbydefault=false
|
||||
- --entrypoints.web.address=:80
|
||||
- --entrypoints.websecure.address=:443
|
||||
- --entrypoints.web.http.redirections.entrypoint.to=websecure
|
||||
- --entrypoints.web.http.redirections.entrypoint.scheme=https
|
||||
- --certificatesresolvers.letsencrypt.acme.email=email@example.com ### CHANGE email@example.com TO YOUR EMAIL ADDRESS ###
|
||||
- --certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/acme.json
|
||||
- --certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web
|
||||
networks:
|
||||
- web
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: false
|
||||
15
docker/docker-compose.yml
Normal file
15
docker/docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
name: parkingpage
|
||||
|
||||
services:
|
||||
parkingpage:
|
||||
image: ghcr.io/ivancarlosti/parkingpage:latest
|
||||
env_file: .env
|
||||
container_name: parkingpage
|
||||
restart: unless-stopped
|
||||
entrypoint: ["/startup.sh"]
|
||||
ports:
|
||||
- "${WEB_PORT:-10001:80}" # default port exposted 10001
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 128M
|
||||
Reference in New Issue
Block a user