forked from kamba4/sunders
tmp
This commit is contained in:
parent
325c3c665d
commit
677218076e
1 changed files with 62 additions and 0 deletions
62
docker-compose.yml
Normal file
62
docker-compose.yml
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue