Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff1fddb111 | ||
|
|
ee594dc1d3 | ||
|
|
82a3f0e2d2 | ||
|
|
3ab0875242 | ||
|
|
60ac4f50a5 |
@@ -1,14 +0,0 @@
|
|||||||
# The client id of your Strava app.
|
|
||||||
STRAVA_CLIENT_ID=178054
|
|
||||||
# The client secret of your Strava app.
|
|
||||||
STRAVA_CLIENT_SECRET=a88e76d0d018e5a728f7edbb4eb4ef296c9f6faf
|
|
||||||
# You will need to obtain this token the first time you launch the app.
|
|
||||||
# Leave this unchanged for now until the app tells you otherwise.
|
|
||||||
# Do not use the refresh token displayed on your Strava API settings page, it will not work.
|
|
||||||
STRAVA_REFRESH_TOKEN=f09d865c970bd012dcd5daa149e6d43feb973446
|
|
||||||
# Valid timezones can found under TZ Identifier column here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
|
||||||
TZ=Europe/Berlin
|
|
||||||
|
|
||||||
# The UID and GID to create/own files managed by statistics-for-strava
|
|
||||||
PUID=1000
|
|
||||||
PGID=1000
|
|
||||||
+64
-11
@@ -1,18 +1,71 @@
|
|||||||
services:
|
services:
|
||||||
strava-statistics:
|
SnapOtter:
|
||||||
image: robiningelbrecht/strava-statistics:latest
|
image: snapotter/snapotter:latest # or ghcr.io/snapotter-hq/snapotter:latest
|
||||||
container_name: statistics-for-strava
|
container_name: snapotter
|
||||||
restart: unless-stopped
|
# ports:
|
||||||
|
# - "1349:1349"
|
||||||
networks:
|
networks:
|
||||||
- bragi-local
|
- bragi-local
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/07_sport/strava/config:/var/www/config/app
|
- /opt/10_images/snapotter:/data
|
||||||
- /opt/07_sport/strava/build:/var/www/build
|
environment:
|
||||||
- /opt/07_sport/strava/storage/database:/var/www/storage/database
|
- AUTH_ENABLED=true
|
||||||
- /opt/07_sport/strava/storage/files:/var/www/storage/files
|
- DEFAULT_USERNAME=admin
|
||||||
env_file: ./.env
|
- DEFAULT_PASSWORD=admin
|
||||||
# ports:
|
- DATABASE_URL=postgres://snapotter:snapotter@postgres:5432/snapotter
|
||||||
# - 8083:8080
|
- REDIS_URL=redis://redis:6379
|
||||||
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
restart: unless-stopped
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
reservations:
|
||||||
|
devices:
|
||||||
|
- driver: nvidia
|
||||||
|
count: 1
|
||||||
|
capabilities: [gpu]
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:17-alpine
|
||||||
|
container_name: snapotter_postgres
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: snapotter
|
||||||
|
POSTGRES_PASSWORD: snapotter
|
||||||
|
POSTGRES_DB: snapotter
|
||||||
|
networks:
|
||||||
|
- bragi-local
|
||||||
|
volumes:
|
||||||
|
- /opt/10_images/postgresql:/var/lib/postgresql/data
|
||||||
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U snapotter"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 12
|
||||||
|
|
||||||
|
redis:
|
||||||
|
container_name: snapotter_redis
|
||||||
|
networks:
|
||||||
|
- bragi-local
|
||||||
|
image: redis:8-alpine
|
||||||
|
command: ["redis-server", "--maxmemory-policy", "noeviction", "--appendonly", "yes"]
|
||||||
|
volumes:
|
||||||
|
- /opt/10_images/redis:/data
|
||||||
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 12
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
SnapOtter-data:
|
||||||
|
SnapOtter-pgdata:
|
||||||
|
SnapOtter-redisdata:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
bragi-local:
|
bragi-local:
|
||||||
external: true
|
external: true
|
||||||
Reference in New Issue
Block a user