Skip to content

Commit

Permalink
Merge pull request #106 from ChristianLempa:semaphore-prod-1_deployment
Browse files Browse the repository at this point in the history
Semaphore-prod-1_deployment
  • Loading branch information
ChristianLempa authored Jun 28, 2024
2 parents 4d02b7e + 26508ff commit c3c2a0b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 42 deletions.
42 changes: 0 additions & 42 deletions ansible/ansiblesemaphore-prod-1/docker-compose.yaml

This file was deleted.

43 changes: 43 additions & 0 deletions semaphore/semaphore-demo-1/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
services:
semaphore:
container_name: semaphore-demo-1
image: semaphoreui/semaphore:v2.19.10
environment:
- SEMAPHORE_DB_USER=${SEMAPHORE_DB_USER:?error}
- SEMAPHORE_DB_PASS=${SEMAPHORE_DB_PASS:?error}
- SEMAPHORE_DB_HOST=${SEMAPHORE_DB_HOST:?error}
- SEMAPHORE_DB_PORT=3306
- SEMAPHORE_DB_DIALECT=mysql
- SEMAPHORE_DB=${SEMAPHORE_DB:?error}
- SEMAPHORE_PLAYBOOK_PATH=/tmp/semaphore/
- SEMAPHORE_ADMIN_PASSWORD=${SEMAPHORE_ADMIN_PASSWORD:?error}
- SEMAPHORE_ADMIN_NAME=${SEMAPHORE_ADMIN_NAME:-admin}
- SEMAPHORE_ADMIN_EMAIL=${SEMAPHORE_ADMIN_EMAIL:-admin@localhost}
- SEMAPHORE_ADMIN=${SEMAPHORE_ADMIN:-admin}
- SEMAPHORE_ACCESS_KEY_ENCRYPTION=${SEMAPHORE_ACCESS_KEY_ENCRYPTION:?error}
- ANSIBLE_HOST_KEY_CHECKING=false
volumes:
- semaphore_config:/etc/semaphore:rw
- ./data:/data:ro
labels:
- traefik.enable=true
- traefik.http.routers.semaphore-demo-1-https.entrypoints=websecure
- traefik.http.routers.semaphore-demo-1-https.rule=Host(`semaphore-demo-1.srv-prod-1.home.clcreative.de`)
- traefik.http.routers.semaphore-demo-1-https.tls=true
- traefik.http.routers.semaphore-demo-1-https.tls.certresolver=cloudflare
- traefik.http.services.semaphore-demo-1-service.loadbalancer.server.port=3000
networks:
- frontend
- backend
restart: unless-stopped

networks:
frontend:
external: true
backend:
external: true

volumes:
semaphore_config:
driver: local

0 comments on commit c3c2a0b

Please sign in to comment.