Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Oct 10, 2024
1 parent 77c9458 commit e878db8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ RUN apt-get update -y
# Install nginx and PHP 8.3
RUN apt-get install nginx php8.3-fpm php8.3-cli php8.3-sqlite3 php8.3-curl php8.3-yaml sqlite3 -y

# Install motion and make sure it's stopped
# Install motion
RUN apt-get install motion -y
RUN service motion stop

# Clone project in the container
RUN git clone https://github.com/lbr38/motion-ui.git /tmp/motionui
Expand Down
22 changes: 22 additions & 0 deletions docker/docker-compose-empty-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

---
version: "3"
services:
motionui-dev:
container_name: motionui-dev
image: motionui-dev
build:
context: .
dockerfile: Dockerfile
args:
env: devel
fqdn: motionui-dev.localhost
restart: unless-stopped
ports:
- "8888:8080"
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/lib/docker/volumes/motionui-dev-logs:/var/log/nginx
- /var/lib/docker/volumes/motionui-dev-www:/var/www/motionui
- /var/lib/docker/volumes/motionui-dev-data:/var/lib/motionui
- /var/lib/docker/volumes/motionui-dev-captures:/var/lib/motion
1 change: 1 addition & 0 deletions docker/init
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ GO2RTC_DIR="/var/lib/motionui/go2rtc"

# Make sure motion service is stopped
/usr/sbin/service motion stop
killall motion

/bin/bash $WWW_DIR/bin/motionui -p &
chown -R www-data:motionui $DATA_DIR
Expand Down

0 comments on commit e878db8

Please sign in to comment.