Updating for traefik
This commit is contained in:
parent
c396ec0fd2
commit
4491901f53
|
@ -60,8 +60,10 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
|
image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
|
||||||
networks:
|
networks:
|
||||||
- default
|
default:
|
||||||
- mail
|
aliases:
|
||||||
|
- funkwhale_api
|
||||||
|
mail:
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
|
@ -84,11 +86,13 @@ services:
|
||||||
- api
|
- api
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
labels:
|
||||||
# Override those variables in your .env file if needed
|
- "traefik.enable=true"
|
||||||
- "NGINX_MAX_BODY_SIZE=${NGINX_MAX_BODY_SIZE-100M}"
|
- "traefik.http.services.funkwhale.loadbalancer.server.port=80"
|
||||||
- LETSENCRYPT_HOST=audio.solarpunk.moe
|
- "traefik.http.routers.funkwhale.rule=Host(`audio.solarpunk.moe`)"
|
||||||
- VIRTUAL_HOST=audio.solarpunk.moe
|
- "traefik.http.routers.funkwhale.tls.certresolver=leresolver"
|
||||||
|
- "traefik.http.routers.funkwhale.entrypoints=websecure"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- "./nginx/funkwhale.template:/etc/nginx/conf.d/funkwhale.template:ro"
|
- "./nginx/funkwhale.template:/etc/nginx/conf.d/funkwhale.template:ro"
|
||||||
- "./nginx/funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf:ro"
|
- "./nginx/funkwhale_proxy.conf:/etc/nginx/funkwhale_proxy.conf:ro"
|
||||||
|
@ -96,9 +100,6 @@ services:
|
||||||
- "${MEDIA_ROOT}:${MEDIA_ROOT}:ro"
|
- "${MEDIA_ROOT}:${MEDIA_ROOT}:ro"
|
||||||
- "${STATIC_ROOT}:${STATIC_ROOT}:ro"
|
- "${STATIC_ROOT}:${STATIC_ROOT}:ro"
|
||||||
- "${FUNKWHALE_FRONTEND_PATH}:/frontend:ro"
|
- "${FUNKWHALE_FRONTEND_PATH}:/frontend:ro"
|
||||||
ports:
|
|
||||||
# override those variables in your .env file if needed
|
|
||||||
- "${FUNKWHALE_API_IP}:${FUNKWHALE_API_PORT}:80"
|
|
||||||
command: >
|
command: >
|
||||||
sh -c "envsubst \"`env | awk -F = '{printf \" $$%s\", $$1}'`\"
|
sh -c "envsubst \"`env | awk -F = '{printf \" $$%s\", $$1}'`\"
|
||||||
< /etc/nginx/conf.d/funkwhale.template
|
< /etc/nginx/conf.d/funkwhale.template
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
upstream funkwhale-api {
|
upstream funkwhale-api {
|
||||||
# depending on your setup, you may want to update this
|
# depending on your setup, you may want to update this
|
||||||
server api:5000;
|
server funkwhale_api:5000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue