29 lines
726 B
YAML
29 lines
726 B
YAML
services:
|
|
app:
|
|
build: .
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- ConnectionStrings__Default=Server=db;Port=3306;Database=calendarreminder;User=appuser;Password=secret;
|
|
- ASPNETCORE_ENVIRONMENT=Production
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: mariadb:11
|
|
environment:
|
|
MARIADB_ROOT_PASSWORD: rootpass
|
|
MARIADB_DATABASE: calendarreminder
|
|
MARIADB_USER: appuser
|
|
MARIADB_PASSWORD: secret
|
|
volumes:
|
|
- /mnt/tank/calendarreminder/mariadb:/var/lib/mysql
|
|
healthcheck:
|
|
test: ["CMD", "healthcheck.sh", "--connect"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|