Basic CI/CD integration #4

Merged
asohh merged 10 commits from workflows into container 2025-10-12 17:07:02 +02:00
Showing only changes of commit d8830d77aa - Show all commits

feat: Adds compose file

Vincent Mahnke 2025-10-11 21:48:38 +02:00 committed by Vincent Mahnke

34
docker-compose.yml Normal file
View file

@ -0,0 +1,34 @@
version: '3.8'
services:
db:
image: mariadb:12.0.2
environment:
MYSQL_ROOT_PASSWORD: rootpassword # ${{secrets.MYSQL_ROOT_PASSWORD}}
MYSQL_DATABASE: camera # ${{secrets.MYSQL_DATABASE}}
MYSQL_USER: camera # ${{secrets.MYSQL_USER}}
MYSQL_PASSWORD: camerapassword # ${{secrets.MYSQL_PASSWORD}}
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
web:
image: git.hamburg.ccc.de/ccchh/sunders/web:latest
environment:
MYSQL_HOST: db
MYSQL_DB: camera # ${{secrets.MYSQL_DATABASE}}
MYSQL_USER: camera # ${{secrets.MYSQL_USER}}
MYSQL_PASSWORD: camerapassword # ${{secrets.MYSQL_PASSWORD}}
DEFAULT_ZOOM: 12
DEFAULT_LAT: 0
DEFAULT_LON: 0
DEFAULT_LANGUAGE: en
ports:
- "8080:80"
depends_on:
- db
volumes:
ViMaSter marked this conversation as resolved Outdated

why the mount? the data is in the container.

could be useful for a dev compose file, but I would create a separate one for that.

why the mount? the data is in the container. could be useful for a dev compose file, but I would create a separate one for that.

Good shout! Removed in 1ac9d096ff. :)

Good shout! Removed in 1ac9d096ffbe22598be368456cf98be0f9c8c6a5. :)
- ./www/sunders:/var/www/html