adding an actual deployment template.
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Colin 2024-05-04 10:10:34 -04:00
parent be68c0d833
commit 3be4ab61fa
2 changed files with 65 additions and 0 deletions

34
stack.production.yml Normal file
View File

@ -0,0 +1,34 @@
version: "3.7"
networks:
traefik:
external: true
default:
services:
imap-json-fetcher:
image: git.nixc.us/colin/imap-json-fetcher:production
environment:
IMAP_HOST: "your_imap_server_address"
IMAP_USERNAME: "your_username"
IMAP_PASSWORD: "your_password"
# IMAP_FOLDER: "your_folder_name" # Optional, defaults to "INBOX"
volumes:
- imap-json-fetcher:/
deploy:
placement:
constraints:
- node.labels.mac-rack == true
labels:
traefik.enable: "false"
update_config:
order: stop-first
failure_action: rollback
delay: 5s
delay: 10s
parallelism: 1
restart_policy:
condition: any
delay: 5m
volumes:
imap-json-fetcher:

31
stack.staging.yml Normal file
View File

@ -0,0 +1,31 @@
version: "3.7"
networks:
traefik:
external: true
default:
services:
imap-json-fetcher:
image: git.nixc.us/colin/imap-json-fetcher:staging
environment:
IMAP_HOST: "your_imap_server_address"
IMAP_USERNAME: "your_username"
IMAP_PASSWORD: "your_password"
# IMAP_FOLDER: "your_folder_name" # Optional, defaults to "INBOX"
deploy:
placement:
constraints:
- node.labels.mac-rack == true
labels:
traefik.enable: "false"
update_config:
order: stop-first
failure_action: rollback
delay: 5s
delay: 10s
parallelism: 1
restart_policy:
condition: any
delay: 5m