Deploy e-rechnung steinle to production.
This commit is contained in:
55
erechnung-steinle/docker-compose.yaml
Normal file
55
erechnung-steinle/docker-compose.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
invoice-steinle:
|
||||
|
||||
volumes:
|
||||
invoice-steinle-db:
|
||||
invoice-steinle-storage:
|
||||
name: invoice-steinle-storage
|
||||
|
||||
services:
|
||||
app:
|
||||
image: cs-git.ddnss.de/ri-st/project:master
|
||||
restart: always
|
||||
dns:
|
||||
- '8.8.8.8'
|
||||
links:
|
||||
- pgsql
|
||||
depends_on:
|
||||
pgsql:
|
||||
condition: service_healthy
|
||||
working_dir: /var/www
|
||||
volumes:
|
||||
- ./.env:/var/www/.env
|
||||
- invoice-steinle-storage:/var/www/storage/app/public
|
||||
networks:
|
||||
- proxy
|
||||
- invoice-steinle
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.invoice-steinle.rule=Host(`e-rechnung.steinle-computer.de`)"
|
||||
- "traefik.http.routers.invoice-steinle.entrypoints=web"
|
||||
- "traefik.http.routers.invoice-steinle.middlewares=invoice-steinle"
|
||||
- "traefik.http.middlewares.invoice-steinle.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.invoice-steinle-secure.rule=Host(`e-rechnung.steinle-computer.de`)"
|
||||
- "traefik.http.routers.invoice-steinle-secure.entrypoints=websecure"
|
||||
- "traefik.http.routers.invoice-steinle-secure.tls=true"
|
||||
- "traefik.http.routers.invoice-steinle-secure.tls.certresolver=cs"
|
||||
- "traefik.http.routers.invoice-steinle-secure.service=invoice-steinle-secure"
|
||||
- "traefik.http.services.invoice-steinle-secure.loadbalancer.server.port=80"
|
||||
|
||||
pgsql:
|
||||
image: postgres:17-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- invoice-steinle-db:/var/lib/postgresql/data
|
||||
networks:
|
||||
- invoice-steinle
|
||||
environment:
|
||||
PGPASSWORD: $*8D%!nnoiiu6w
|
||||
POSTGRES_PASSWORD: $*8D%!nnoiiu6w
|
||||
POSTGRES_USER: steinle
|
||||
POSTGRES_DB: steinle
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U steinle"]
|
||||
Reference in New Issue
Block a user