45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
# docker-compose.yml
|
|
# Multiplatform-Build: linux/amd64 + linux/arm64 (z.B. fuer M1/M2-Mac und x86-Server)
|
|
#
|
|
# Einmaliger Setup:
|
|
# docker buildx create --use --name multi
|
|
#
|
|
# Build & Push (Multi-Arch):
|
|
# docker buildx bake --push
|
|
#
|
|
# Lokaler Start (nur aktuelle Plattform):
|
|
# docker compose up --build
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
image: docker.citysensor.de/tabletten_next:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
# MySQL
|
|
MYSQL_HOST: ${MYSQL_HOST}
|
|
MYSQL_PORT: ${MYSQL_PORT:-3306}
|
|
MYSQL_USER: ${MYSQL_USER}
|
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
|
# E-Mail
|
|
SMTP_HOST: ${SMTP_HOST}
|
|
SMTP_PORT: ${SMTP_PORT:-587}
|
|
SMTP_USER: ${SMTP_USER}
|
|
SMTP_PASS: ${SMTP_PASS}
|
|
MAIL_TO: ${MAIL_TO}
|
|
# App
|
|
VORLAUF: ${VORLAUF:-14}
|
|
CHECK_SECRET: ${CHECK_SECRET}
|
|
AUTH_USERS: ${AUTH_USERS}
|
|
AUTH_SECRET: ${AUTH_SECRET}
|
|
env_file:
|
|
- .env.local
|