Update docker-compose

This commit is contained in:
2021-12-25 01:04:18 +01:00
parent e881c73911
commit 68b5e5030d

View File

@@ -1,10 +1,33 @@
version: '3.3'
services:
laravel:
ports:
- '8000:80'
environment:
- APP_ENV=local
- DB_CONNECTION=sqlite
- 'APP_KEY=base64:L+3avOYCfuq8nnDpHs74+5Et3sx27TssucHQIyqfpDY='
build: .
labels:
- "traefik.enable=true"
# https
- "traefik.http.routers.shitshow_https.rule=Host(`bibelfreaks.de`)"
- "traefik.http.routers.shitshow_https.entrypoints=websecure"
- "traefik.http.routers.shitshow_https.tls.certresolver=letsencrypt"
- "traefik.http.services.shitshow_https.loadbalancer.server.port=80"
postgres-db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER: web
- POSTGRES_PASSWORD: example
volumes:
- ./postgres-data:/var/lib/postgresql/data
networks:
- shared-database
networks:
shared-database:
traefik:
external:
name: traefik