Agregando traefik
This commit is contained in:
@@ -10,6 +10,8 @@ APP_FALLBACK_LOCALE=en
|
|||||||
APP_FAKER_LOCALE=en_US
|
APP_FAKER_LOCALE=en_US
|
||||||
APP_MAINTENANCE_DRIVER=file
|
APP_MAINTENANCE_DRIVER=file
|
||||||
|
|
||||||
|
DATA_DIR=/tmp/moka
|
||||||
|
|
||||||
PHP_CLI_SERVER_WORKERS=4
|
PHP_CLI_SERVER_WORKERS=4
|
||||||
|
|
||||||
BCRYPT_ROUNDS=12
|
BCRYPT_ROUNDS=12
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
services:
|
||||||
|
app:
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=traefik"
|
||||||
|
- "traefik.http.routers.moka-web.rule=Host(`moka.skrd.fun`)"
|
||||||
|
- "traefik.http.routers.moka-web.entrypoints=web"
|
||||||
|
- "traefik.http.routers.moka-web.middlewares=redirect-to-https@file"
|
||||||
|
- "traefik.http.routers.moka.rule=Host(`moka.skrd.fun`)"
|
||||||
|
- "traefik.http.routers.moka.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.moka.tls.certresolver=cf"
|
||||||
|
- "traefik.http.services.moka.loadbalancer.server.port=8000"
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
- proxy
|
||||||
|
|
||||||
|
queue:
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
|
||||||
|
scheduler:
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
|
||||||
|
pgsql:
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
|
||||||
|
redis:
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internal:
|
||||||
|
name: moka
|
||||||
|
proxy:
|
||||||
|
name: traefik
|
||||||
|
external: true
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ services:
|
|||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_DIR}/cache:/data
|
- ${DATA_DIR}/cache:/data
|
||||||
|
|||||||
Reference in New Issue
Block a user