From 677218076ee5e80e79e877b02eea5fe2001f56d8 Mon Sep 17 00:00:00 2001 From: Vincent Mahnke Date: Sat, 11 Oct 2025 20:50:15 +0200 Subject: [PATCH] tmp --- docker-compose.yml | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..82ab0cd --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,62 @@ +version: '3.8' +services: + db: + image: mysql:9.4 + environment: + MYSQL_ROOT_PASSWORD: rootpassword + MYSQL_DATABASE: camera + MYSQL_USER: camera + MYSQL_PASSWORD: camerapassword + ports: + - "3306:3306" + healthcheck: + test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] + interval: 10s + timeout: 5s + retries: 5 + volumes: + - ./home/sunders/init_cameras/db:/docker-entrypoint-initdb.d + + web: + build: ./www/sunders + environment: + MYSQL_HOST: db + MYSQL_DB: camera + MYSQL_USER: camera + MYSQL_PASSWORD: camerapassword + DEFAULT_ZOOM: 12 + DEFAULT_LAT: 0 + DEFAULT_LON: 0 + DEFAULT_LANGUAGE: en + ports: + - "8080:80" + depends_on: + - db + volumes: + - ./www/sunders:/var/www/html + + # setup: + # image: alpine:latest + # volumes: + # - ./home/sunders/init_cameras/:/init_cameras + # working_dir: /init_cameras + # environment: + # MYSQL_ROOT_PASSWORD: rootpassword + # MYSQL_DATABASE: camera + # MYSQL_USER: camera + # MYSQL_PASSWORD: camerapassword + # entrypoint: ["/bin/sh", "-c", "./createInitialDataFiles.sh"] + # depends_on: + # - db + + # updater: + # build: ./home/sunders/update_cameras + # environment: + # MYSQL_PASSWORD: camerapassword + # depends_on: + # - db + # # Uncomment to run periodically + # # deploy: + # # replicas: 1 + # # restart_policy: + # # condition: on-failure \ No newline at end of file