File tree Expand file tree Collapse file tree 1 file changed +10
-24
lines changed
Expand file tree Collapse file tree 1 file changed +10
-24
lines changed Original file line number Diff line number Diff line change 11services :
2+ redis :
3+ image : redis:7-alpine
4+ container_name : watchly-redis
5+ restart : unless-stopped
26 watchly :
37 build :
48 context : .
59 dockerfile : Dockerfile
610 container_name : watchly
711 restart : unless-stopped
812 ports :
9- - " ${PORT:-8000}:8000"
10- environment :
11- - TMDB_API_KEY=${TMDB_API_KEY}
12- - PORT=${PORT:-8000}
13- - ADDON_ID=${ADDON_ID:-com.bimal.watchly}
14- - ADDON_NAME=${ADDON_NAME:-Watchly}
15- - REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
16- - TOKEN_SALT=${TOKEN_SALT:-change-me}
17- - TOKEN_TTL_SECONDS=${TOKEN_TTL_SECONDS:-0}
18- - ANNOUNCEMENT_HTML=${ANNOUNCEMENT_HTML:-}
13+ - " 127.0.0.1:8000:8000"
14+ # some macos users need to use 127.0.0.1:8000:8000 to access the app on localhost due to IPV6 issues
1915 env_file :
2016 - .env
17+ environment :
18+ # Override REDIS_URL to use Docker service name instead of localhost
19+ - REDIS_URL=redis://redis:6379/0
2120 volumes :
22- - ./static:/app/static:ro
23- networks :
24- - watchly-network
21+ - ./:/app
2522 depends_on :
2623 - redis
27-
28- redis :
29- image : redis:7-alpine
30- container_name : watchly-redis
31- restart : unless-stopped
32- networks :
33- - watchly-network
34-
35- networks :
36- watchly-network :
37- driver : bridge
You can’t perform that action at this time.
0 commit comments