Files
intranet/docker-compose.local.yml
T

64 lines
1.7 KiB
YAML

# LOCAL DEVELOPMENT ONLY
name: intranet-local
services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "127.0.0.1:8080:80"
env_file:
- .env
environment:
TZ: Europe/Berlin
DB_HOST: db
DB_PORT: "5432"
CKAL_XLSX_DIR: /data/ckal-xlsx
STRATO_SYNC_ENABLED: "false"
BRANDSCHUTZ_MAIL_ENABLED: "false"
depends_on:
db:
condition: service_healthy
command: >
sh -c "printf '%s\n' 'session.cookie_secure = 0'
> /usr/local/etc/php/conf.d/zz-local.ini
&& exec apache2-foreground"
volumes:
- ./web:/var/www/html
- profile_pictures:/var/www/html/intranet_repo/general_files/profile_pictures
- content_news:/var/www/html/intranet_repo/projects/contentpanel/insertion/news
- developer_work:/var/www/html/intranet_repo/projects/developerpanel/work
- seelsorge_data:/var/www/html/intranet_repo/projects/seelsorge/data
- dashboard_month:/var/www/html/intranet_repo/projects/dashboard/month
- ckal_xlsx:/data/ckal-xlsx
- calendar_pdf:/var/www/html/pdf
db:
image: postgres:${POSTGRES_VERSION:-16}
ports:
- "127.0.0.1:5432:5432"
environment:
TZ: Europe/Berlin
POSTGRES_DB: ${DB_NAME:?set DB_NAME in .env}
POSTGRES_USER: ${DB_USER:?set DB_USER in .env}
POSTGRES_PASSWORD: ${DB_PASSWORD:?set DB_PASSWORD in .env}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""]
interval: 5s
timeout: 5s
retries: 12
volumes:
postgres_data:
profile_pictures:
content_news:
developer_work:
seelsorge_data:
dashboard_month:
ckal_xlsx:
calendar_pdf: