refactor(docker-compose): improve docker compose file
This commit is contained in:
parent
086fd9667f
commit
3acb605685
1 changed files with 8 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
dweebui:
|
||||
container_name: DweebUI
|
||||
container_name: dweebui
|
||||
image: lllllllillllllillll/dweebui:v0.06
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
|
@ -14,18 +14,14 @@ services:
|
|||
links:
|
||||
- cache
|
||||
volumes:
|
||||
- dweebui:/app
|
||||
- caddyfiles:/app/caddyfiles
|
||||
- ./data/app:/app
|
||||
- ./data/caddyfiles:/app/caddyfiles
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
cache:
|
||||
container_name: DweebCache
|
||||
|
||||
dweeb-redis:
|
||||
container_name: dweeb-redis
|
||||
image: redis:6.2-alpine
|
||||
restart: always
|
||||
restart: unless-stopped
|
||||
command: redis-server --save 20 1 --loglevel warning --requirepass replace_with_password_for_redis
|
||||
volumes:
|
||||
- cache:/data
|
||||
|
||||
volumes:
|
||||
dweebui:
|
||||
cache:
|
||||
caddyfiles:
|
||||
- ./data/redis:/data
|
Loading…
Add table
Reference in a new issue