emanuelegori ha revisionato questo gist . Vai alla revisione
1 file changed, 6 insertions, 8 deletions
docker-compose.yml
@@ -5,20 +5,18 @@ services: | |||
5 | 5 | ports: | |
6 | 6 | - 8000:8000 | |
7 | 7 | environment: | |
8 | - | # Defines the application log level. Can be error, warning, info, debug. | |
8 | + | # Defines the application log level. Can be error, warn, info, debug. | |
9 | 9 | - READECK_LOG_LEVEL=info | |
10 | 10 | # The IP address on which Readeck listens. | |
11 | 11 | - READECK_SERVER_HOST=0.0.0.0 | |
12 | 12 | # The TCP port on which Readeck listens. Update container port above to match (right of colon). | |
13 | 13 | - READECK_SERVER_PORT=8000 | |
14 | - | # The URL prefix of Readeck. | |
15 | - | - READECK_SERVER_PREFIX=/ | |
16 | - | # A list of hostnames allowed in HTTP requests. Required for reverse proxy configuration. | |
17 | - | - READECK_ALLOWED_HOSTS=readeck.example.com | |
18 | - | # Use the 'X-Forwarded-' headers. Required for reverse proxy configuration. | |
19 | - | - READECK_USE_X_FORWARDED=true | |
14 | + | # Optional, the URL prefix of Readeck. | |
15 | + | # - READECK_SERVER_PREFIX=/ | |
16 | + | # Optional, a list of hostnames allowed in HTTP requests. | |
17 | + | # - READECK_ALLOWED_HOSTS=readeck.example.com | |
20 | 18 | volumes: | |
21 | - | - ./readeck:/readeck | |
19 | + | - ./readeck-data:/readeck | |
22 | 20 | restart: unless-stopped | |
23 | 21 | healthcheck: | |
24 | 22 | test: ["CMD", "/bin/readeck", "healthcheck", "-config", "config.toml"] |
emanuelegori ha revisionato questo gist . Vai alla revisione
Nessuna modifica
emanuelegori ha revisionato questo gist . Vai alla revisione
Nessuna modifica
emanuelegori ha revisionato questo gist . Vai alla revisione
1 file changed, 27 insertions
docker-compose.yml(file creato)
@@ -0,0 +1,27 @@ | |||
1 | + | services: | |
2 | + | readeck: | |
3 | + | image: codeberg.org/readeck/readeck:latest | |
4 | + | container_name: readeck | |
5 | + | ports: | |
6 | + | - 8000:8000 | |
7 | + | environment: | |
8 | + | # Defines the application log level. Can be error, warning, info, debug. | |
9 | + | - READECK_LOG_LEVEL=info | |
10 | + | # The IP address on which Readeck listens. | |
11 | + | - READECK_SERVER_HOST=0.0.0.0 | |
12 | + | # The TCP port on which Readeck listens. Update container port above to match (right of colon). | |
13 | + | - READECK_SERVER_PORT=8000 | |
14 | + | # The URL prefix of Readeck. | |
15 | + | - READECK_SERVER_PREFIX=/ | |
16 | + | # A list of hostnames allowed in HTTP requests. Required for reverse proxy configuration. | |
17 | + | - READECK_ALLOWED_HOSTS=readeck.example.com | |
18 | + | # Use the 'X-Forwarded-' headers. Required for reverse proxy configuration. | |
19 | + | - READECK_USE_X_FORWARDED=true | |
20 | + | volumes: | |
21 | + | - ./readeck:/readeck | |
22 | + | restart: unless-stopped | |
23 | + | healthcheck: | |
24 | + | test: ["CMD", "/bin/readeck", "healthcheck", "-config", "config.toml"] | |
25 | + | interval: 30s | |
26 | + | timeout: 2s | |
27 | + | retries: 3 |