forked from caronc/apprise-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1.37 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3'
services:
apprise:
build: .
container_name: apprise
environment:
- APPRISE_STATEFUL_MODE=simple
ports:
- 8000:8000
volumes:
- ./apprise_api:/opt/apprise/webapp:ro
# if uncommenting the below, you will need to type the following
# Note: if you opt for bind mount config file consider setting env var APPRISE_STATEFUL_MODE to simple with appropriate file format
# 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
# 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
## Un-comment the below and then access a testing environment with:
## docker-compose run test.py310 build
## 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