forked from kamba4/sunders
This commit is contained in:
parent
8fa7980e1e
commit
b8e6c4605c
16 changed files with 66 additions and 75 deletions
|
@ -1,12 +1,12 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
db:
|
||||
image: mysql:9.4
|
||||
image: git.hamburg.ccc.de/ccchh/sunders/db:latest
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: rootpassword
|
||||
MYSQL_DATABASE: camera
|
||||
MYSQL_USER: camera
|
||||
MYSQL_PASSWORD: camerapassword
|
||||
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:
|
||||
|
@ -14,16 +14,14 @@ services:
|
|||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
volumes:
|
||||
- ./home/sunders/init_cameras/db:/docker-entrypoint-initdb.d
|
||||
|
||||
web:
|
||||
build: ./www/sunders
|
||||
image: git.hamburg.ccc.de/ccchh/sunders/web:latest
|
||||
environment:
|
||||
MYSQL_HOST: db
|
||||
MYSQL_DB: camera
|
||||
MYSQL_USER: camera
|
||||
MYSQL_PASSWORD: camerapassword
|
||||
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
|
||||
|
@ -33,30 +31,4 @@ services:
|
|||
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
|
||||
- ./www/sunders:/var/www/html
|
Loading…
Add table
Add a link
Reference in a new issue