2020-08-30 23:30:17 +02:00
|
|
|
version: '3'
|
2019-10-27 04:53:40 +01:00
|
|
|
|
|
|
|
services:
|
2020-08-30 23:30:17 +02:00
|
|
|
apprise:
|
|
|
|
build: .
|
|
|
|
container_name: apprise
|
2019-10-27 04:53:40 +01:00
|
|
|
ports:
|
2021-10-30 22:58:15 +02:00
|
|
|
- 8000:8000
|
|
|
|
user: "www-data:www-data"
|
|
|
|
volumes:
|
|
|
|
- ./apprise_api:/opt/apprise/webapp:ro
|
|
|
|
# if uncommenting the below, you will need to type the following
|
2023-04-09 23:42:19 +02:00
|
|
|
# Note: if you opt for bind mount config file consider setting env var APPRISE_STATEFUL_MODE to simple with appropriate file format
|
2021-10-30 22:58:15 +02:00
|
|
|
# otherwise the django instance won't have permissions to write
|
|
|
|
# to the directory correctly:
|
|
|
|
# $> chown -R 33:33 ./config
|
|
|
|
# $> chmod -R 775 ./config
|
|
|
|
# - ./config:/config:rw
|
2023-05-15 23:10:15 +02:00
|
|
|
# Note: The attachment directory can be exposed outside of the container if required
|
|
|
|
# $> chown -R 33:33 ./attach
|
|
|
|
# $> chmod -R 775 ./attach
|
|
|
|
# - ./attach:/attach:rw
|
2023-11-13 22:40:47 +01:00
|
|
|
|
|
|
|
## Un-comment the below and then access a testing environment with:
|
|
|
|
## docker-compose run --service-ports --rm test.py310 bash
|
|
|
|
##
|
|
|
|
## From here you
|
|
|
|
## > Check for any lint errors
|
|
|
|
## flake8 apprise_api
|
|
|
|
##
|
|
|
|
## > Run unit tests
|
|
|
|
## pytest apprise_api
|
|
|
|
##
|
|
|
|
## > Host service (visit http://localhost on host pc to access):
|
|
|
|
## ./manage.py runserver 0.0.0.0:8000
|
|
|
|
#test.py310:
|
|
|
|
# ports:
|
|
|
|
# - 8000:8000
|
|
|
|
# build:
|
|
|
|
# context: .
|
|
|
|
# dockerfile: Dockerfile.py310
|
|
|
|
# volumes:
|
|
|
|
# - ./:/apprise-api
|