mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-25 23:28:37 -06:00
chg: Added a better compose file
This commit is contained in:
parent
e0c61bdb93
commit
dcb3144b22
1 changed files with 11 additions and 9 deletions
20
compose.yaml
20
compose.yaml
|
@ -10,9 +10,13 @@ services:
|
||||||
- 4567:4567
|
- 4567:4567
|
||||||
environment:
|
environment:
|
||||||
# Change if you want to mount the database somewhere else.
|
# Change if you want to mount the database somewhere else.
|
||||||
# If you do change it, make sure to accordingly change the volume
|
# In this case, you can get rid of the db volume below
|
||||||
# mount location below.
|
# and instead do a mount manually by specifying the location.
|
||||||
- db_url=/urls.sqlite
|
# Make sure that you create an empty file with the correct name
|
||||||
|
# before starting the container if you do make any changes.
|
||||||
|
# (In fact, I'd suggest that you do that so that you can keep
|
||||||
|
# a copy of your database.)
|
||||||
|
- db_url=/db/urls.sqlite
|
||||||
|
|
||||||
# Change it in case you want to set the website name
|
# Change it in case you want to set the website name
|
||||||
# displayed in front of the shorturls, defaults to
|
# displayed in front of the shorturls, defaults to
|
||||||
|
@ -41,10 +45,8 @@ services:
|
||||||
# headers instead.
|
# headers instead.
|
||||||
# - cache_control_header=no-cache, private
|
# - cache_control_header=no-cache, private
|
||||||
volumes:
|
volumes:
|
||||||
- ./urls.sqlite:/urls.sqlite
|
- db:/db
|
||||||
networks:
|
|
||||||
- proxy
|
volumes:
|
||||||
|
db:
|
||||||
|
|
||||||
networks:
|
|
||||||
proxy:
|
|
||||||
external: true
|
|
||||||
|
|
Loading…
Reference in a new issue