forked from Nixius/template
FIXUP: Move Traefik labels inside deploy directive for proper Swarm routing
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
7da58b08da
commit
286004dbcf
|
@ -22,6 +22,17 @@ services:
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
delay: 10s
|
delay: 10s
|
||||||
order: stop-first
|
order: stop-first
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.production_easy-appointments.rule=Host(`cal.colinknapp.com`)
|
||||||
|
- traefik.http.routers.production_easy-appointments.entrypoints=websecure
|
||||||
|
- traefik.http.routers.production_easy-appointments.tls=true
|
||||||
|
- traefik.http.routers.production_easy-appointments.tls.certresolver=letsencryptresolver
|
||||||
|
- traefik.http.services.production_easy-appointments.loadbalancer.server.port=80
|
||||||
|
# - traefik.http.services.production_easy-appointments.loadbalancer.healthcheck.path=/health
|
||||||
|
# - traefik.http.services.production_easy-appointments.loadbalancer.healthcheck.interval=30s
|
||||||
|
# - traefik.http.services.production_easy-appointments.loadbalancer.healthcheck.timeout=5s
|
||||||
|
- traefik.http.routers.production_easy-appointments.middlewares=secure-headers
|
||||||
environment:
|
environment:
|
||||||
BASE_URL: "https://cal.colinknapp.com"
|
BASE_URL: "https://cal.colinknapp.com"
|
||||||
DEBUG_MODE: "TRUE"
|
DEBUG_MODE: "TRUE"
|
||||||
|
@ -32,17 +43,6 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
- default
|
- default
|
||||||
labels:
|
|
||||||
- traefik.enable=true
|
|
||||||
- traefik.http.routers.production_easy-appointments.rule=Host(`cal.colinknapp.com`)
|
|
||||||
- traefik.http.routers.production_easy-appointments.entrypoints=websecure
|
|
||||||
- traefik.http.routers.production_easy-appointments.tls=true
|
|
||||||
- traefik.http.routers.production_easy-appointments.tls.certresolver=letsencryptresolver
|
|
||||||
- traefik.http.services.production_easy-appointments.loadbalancer.server.port=80
|
|
||||||
# - traefik.http.services.production_easy-appointments.loadbalancer.healthcheck.path=/health
|
|
||||||
# - traefik.http.services.production_easy-appointments.loadbalancer.healthcheck.interval=30s
|
|
||||||
# - traefik.http.services.production_easy-appointments.loadbalancer.healthcheck.timeout=5s
|
|
||||||
- traefik.http.routers.production_easy-appointments.middlewares=secure-headers
|
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
|
|
|
@ -22,6 +22,13 @@ services:
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
delay: 10s
|
delay: 10s
|
||||||
order: stop-first
|
order: stop-first
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.staging_easy-appointments.rule=Host(`staging.cal.colinknapp.com`)
|
||||||
|
- traefik.http.routers.staging_easy-appointments.entrypoints=websecure
|
||||||
|
- traefik.http.routers.staging_easy-appointments.tls=true
|
||||||
|
- traefik.http.routers.staging_easy-appointments.tls.certresolver=letsencryptresolver
|
||||||
|
- traefik.http.services.staging_easy-appointments.loadbalancer.server.port=80
|
||||||
environment:
|
environment:
|
||||||
BASE_URL: "https://staging.cal.colinknapp.com"
|
BASE_URL: "https://staging.cal.colinknapp.com"
|
||||||
DEBUG_MODE: "FALSE"
|
DEBUG_MODE: "FALSE"
|
||||||
|
@ -32,13 +39,6 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
- default
|
- default
|
||||||
labels:
|
|
||||||
- traefik.enable=true
|
|
||||||
- traefik.http.routers.staging_easy-appointments.rule=Host(`staging.cal.colinknapp.com`)
|
|
||||||
- traefik.http.routers.staging_easy-appointments.entrypoints=websecure
|
|
||||||
- traefik.http.routers.staging_easy-appointments.tls=true
|
|
||||||
- traefik.http.routers.staging_easy-appointments.tls.certresolver=letsencryptresolver
|
|
||||||
- traefik.http.services.staging_easy-appointments.loadbalancer.server.port=80
|
|
||||||
|
|
||||||
mariadb:
|
mariadb:
|
||||||
image: git.nixc.us/colin/easy-appointments:staging-mariadb
|
image: git.nixc.us/colin/easy-appointments:staging-mariadb
|
||||||
|
|
Loading…
Reference in New Issue