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

View File

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