Changes

From Amahi Wiki
Jump to: navigation, search
27 bytes added ,  00:16, 7 September 2017
EOF
docker-compose up -d
 
This script creates a docker-compose.yml file and then runs `docker-compose up -d` command which essentially creates and runs the container.
CustomLog APP_ROOT_DIR/logs/access_log combined env=!dontlog
</VirtualHost>
 
APP_PORT part is derived from the app id. After installation the app will have some id in the database base. The APP_PORT will be 35000+app_id
-e TZ=<timezone> \
-p 5075:5075 linuxserver/hydra
 
Convert the above to a docker-compose file. Ignore the `-e PGID=<gid> -e PUID=<uid>`, even though it's relevant, it is out of the scope of this discussion.
- './downloads:/downloads'
- '/etc/localtime:/etc/localtime:ro'
# Understanding the volume mounts:
# ./config:/config -> As seen in the docker create commnad the -v command mentions the volumes.
# - TZ=<timezone>
# in the docker compose file
 
'''NOTE:''' Please note that adding apps might require knowledge about docker and docker-compose and discussing those is out of the scope of this documentation though the links mentioned below might be useful.
EOF
docker-compose up -d
 
Uninstall Script
rm -rf config # Use this if you want all files to be removed after uninstall
rm -rf downloads # Use this if you want all files to be removed after uninstall
 
For more examples of install scripts and docker-compose files of different apps please refer to [https://github.com/vik-y/amahi_images amahi_images repo.] or the table given below.
 {|class="wikitable"|+ <big>'''App examples'''</big>
! Example app
! install-script
12,424

edits