Version 0.7.test #16
Replies: 3 comments 6 replies
-
Heya, I just tried to set up a test deployment and struggled to create an initial account... version: "3"
services:
redis-stack:
image: redis/redis-stack:latest
#ports: # Potential security risc, see below
# - 6379:6379/tcp
# - 8001:8001
volumes:
- /docker/snapp_test/redis/test:/data:rw
- /etc/localtime:/etc/localtime:ro
environment:
REDIS_ARGS: "--save 60 1 --appendonly yes"
networks:
- snapp_test
snapp:
image: uraniadev/snapp:0.7.test
container_name: snapp
#volumes:
# - /docker/snapp_test/app/translations:/app/translations:ro
# - /docker/snapp_test/redis/theme/theme.css:/app/static/custom-theme.css
environment:
AUTH_SECRET: NopeThisIsMySecret!
DB_HOST: redis-stack
# DB_PASS: # Optional: Requires `--requirepass mypassword` in REDIS_ARGS
DB_PORT: 6379
DB_IDX: 0
ENABLE_LIMITS: false
ENABLE_SIGNUP: true
ENABLE_HOME: true
DEFAULT_THEME: dark
DEFAULT_LANG: en
LOCALIZATION_FOLDER: /app/translations
MAX_SHORT_URL: 10
MAX_USAGES: 0
MAX_RPM: 0
MAX_RPD: 0
VIRUSTOTAL_API_KEY: NoNoYouDontgetMyKeyXP
PUBLIC_URL: https://s.aVeryGoodDomainName.ch
ORIGIN: https://s.aVeryGoodDomainName.ch
networks:
- snapp_test
- proxy
networks:
snapp_test: # Snapp Network so Snapp and redis can communicate
external: false
proxy: # Proxy network for reverse proxy
external: true And im also a bit confused about three of the env variables. What do these do?
About the open ports on Redis, since every docker compose stack automatically creates its own docker network, the port section is not needed (at least on Redis) and could be a potential security issue. It actually will be a security issue when no password! Inside the docker network the ports are always available to other containers, but if you open the ports with you can just use |
Beta Was this translation helpful? Give feedback.
-
I updated 0.7.test version. now it checks on a sqlite db, so make sure to reference it in the docker compose and if available it shows Upgrade db in imports version: "3"
services:
redis:
image: redis/redis-stack:latest
# ports: # you can specify LOCAL_IP OR VPN_IP to make db or redis insight available privately
# - (LOCAL_IP or VPN_IP):6379:6379/tcp
# - (LOCAL_IP or VPN_IP):8001:8001
volumes:
# - /home/snapp/redis/test:/data:rw this make sure to enable persistance through docker restarts and shutdowns or updates
- /etc/localtime:/etc/localtime:ro
networks:
- snapp-stack
environment:
REDIS_ARGS: "--save 60 1 --appendonly yes" # Optional: `--requirepass mypassword`
snapp:
image: uraniadev/snapp:0.7.test
ports:
- 5173:3000
volumes:
- /home/snapp/app/translations:/app/translations:ro
- /home/snapp/redis/theme/theme.css:/app/static/custom-theme.css
networks:
- snapp-stack
environment:
AUTH_SECRET: # random string, generate it with bash: openssl rand -base64 32
DB_HOST: redis
# DB_PASS: # Optional: Requires `--requirepass mypassword` in REDIS_ARGS
DB_PORT: 6379
DB_IDX: 0
ENABLE_LIMITS: false
ENABLE_SIGNUP: true
ENABLE_HOME: false
DEFAULT_THEME: dark
DEFAULT_LANG: en
LOCALIZATION_FOLDER: /app/translations
MAX_SHORT_URL: 10
MAX_USAGES: 0
MAX_RPM: 0
MAX_RPD: 0
UMAMI_WEBSITE_ID:
UMAMI_URL:
VIRUSTOTAL_API_KEY:
PUBLIC_URL: http://host:5173
ORIGIN: http://host:5173
networks:
snapp-stack: # Snapp Network so Snapp and redis can communicate
external: false
bridge: # Proxy network for reverse proxy
external: true tried like this works. i should have updated enough to works with a compose as simple as version: "3"
services:
redis:
image: redis/redis-stack:latest
volumes:
- /home/snapp/redis/data:rw #this make sure to enable persistance through docker restarts and shutdowns or updates
- /etc/localtime:/etc/localtime:ro
networks:
- snapp-stack
environment:
REDIS_ARGS: "--save 60 1 --appendonly yes" # Optional: `--requirepass mypassword`
snapp:
image: uraniadev/snapp:0.7.test
ports:
- 3000:3000
networks:
- snapp-stack
environment:
AUTH_SECRET: # generate it with: openssl rand -base64 32
DB_HOST: redis
# Also you can omit this given you use it from http://localhost:3000
# PUBLIC_URL: https://labs.snapp.li
# ORIGIN: https://labs.snapp.li
networks:
snapp-stack: # Snapp Network so Snapp and redis can communicate
external: false
|
Beta Was this translation helpful? Give feedback.
-
Hi! There are any other database what is supported such as Postgres? I already have pgsql, mysql connected with visualization tools, etc. It could be easier for me if I could use these external ones. |
Beta Was this translation helpful? Give feedback.
-
Version 0.7.test is here.
It has major changes, so you may want to install it as a second instance, and if it works, report it on the repository :)
Beta Was this translation helpful? Give feedback.
All reactions