1
0
Fork 0

FIXUP: Pin services to macmini14 and add logging for better debugging
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Leopere 2025-04-23 14:24:13 -04:00
parent c7a738d6cd
commit 63f0651bd9
2 changed files with 25 additions and 3 deletions

View File

@ -8,6 +8,9 @@ services:
image: git.nixc.us/colin/easy-appointments:production image: git.nixc.us/colin/easy-appointments:production
deploy: deploy:
replicas: 1 replicas: 1
placement:
constraints:
- node.hostname == macmini14
restart_policy: restart_policy:
condition: on-failure condition: on-failure
max_attempts: 3 max_attempts: 3
@ -20,8 +23,8 @@ services:
delay: 10s delay: 10s
order: stop-first order: stop-first
environment: environment:
BASE_URL: "https://easy-appointments.colinknapp.com" BASE_URL: "https://cal.colinknapp.com"
DEBUG_MODE: "FALSE" DEBUG_MODE: "TRUE"
DB_HOST: "mariadb" DB_HOST: "mariadb"
DB_NAME: "easyappointments" DB_NAME: "easyappointments"
DB_USERNAME: "root" DB_USERNAME: "root"
@ -31,7 +34,7 @@ services:
- default - default
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.production_easy-appointments.rule=Host(`easy-appointments.colinknapp.com`) - 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.entrypoints=websecure
- traefik.http.routers.production_easy-appointments.tls=true - traefik.http.routers.production_easy-appointments.tls=true
- traefik.http.routers.production_easy-appointments.tls.certresolver=letsencryptresolver - traefik.http.routers.production_easy-appointments.tls.certresolver=letsencryptresolver
@ -40,11 +43,19 @@ services:
# - traefik.http.services.production_easy-appointments.loadbalancer.healthcheck.interval=30s # - traefik.http.services.production_easy-appointments.loadbalancer.healthcheck.interval=30s
# - traefik.http.services.production_easy-appointments.loadbalancer.healthcheck.timeout=5s # - traefik.http.services.production_easy-appointments.loadbalancer.healthcheck.timeout=5s
- traefik.http.routers.production_easy-appointments.middlewares=secure-headers - traefik.http.routers.production_easy-appointments.middlewares=secure-headers
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
mariadb: mariadb:
image: git.nixc.us/colin/easy-appointments:production-mariadb image: git.nixc.us/colin/easy-appointments:production-mariadb
deploy: deploy:
replicas: 1 replicas: 1
placement:
constraints:
- node.hostname == macmini14
restart_policy: restart_policy:
condition: on-failure condition: on-failure
max_attempts: 3 max_attempts: 3
@ -61,6 +72,11 @@ services:
retries: 5 retries: 5
start_period: 30s start_period: 30s
timeout: 5s timeout: 5s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes: volumes:
mariadb_data: mariadb_data:

View File

@ -8,6 +8,9 @@ services:
image: git.nixc.us/colin/easy-appointments:staging image: git.nixc.us/colin/easy-appointments:staging
deploy: deploy:
replicas: 1 replicas: 1
placement:
constraints:
- node.hostname == macmini14
restart_policy: restart_policy:
condition: on-failure condition: on-failure
max_attempts: 3 max_attempts: 3
@ -41,6 +44,9 @@ services:
image: git.nixc.us/colin/easy-appointments:staging-mariadb image: git.nixc.us/colin/easy-appointments:staging-mariadb
deploy: deploy:
replicas: 1 replicas: 1
placement:
constraints:
- node.hostname == macmini14
restart_policy: restart_policy:
condition: on-failure condition: on-failure
max_attempts: 3 max_attempts: 3