2022-05-13 20:06:49 -07:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
send:
|
|
|
|
image: registry.gitlab.com/timvisee/send:latest
|
|
|
|
container_name: send_send
|
2022-07-13 13:35:56 -07:00
|
|
|
logging:
|
|
|
|
driver: loki
|
|
|
|
options:
|
|
|
|
loki-url: http://localhost:3100/loki/api/v1/push
|
|
|
|
loki-batch-size: "50"
|
|
|
|
loki-retries: "1"
|
|
|
|
loki-timeout: "2s"
|
2022-07-14 15:22:44 -07:00
|
|
|
keep-file: "true"
|
2022-07-13 10:47:27 -07:00
|
|
|
restart: "no"
|
2022-05-13 20:06:49 -07:00
|
|
|
networks:
|
2022-05-13 20:28:49 -07:00
|
|
|
- send
|
2022-05-13 20:06:49 -07:00
|
|
|
- web
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_DATA}/uploads:/uploads
|
|
|
|
environment:
|
2022-05-13 20:12:23 -07:00
|
|
|
- VIRTUAL_HOST=0.0.0.0
|
2022-05-13 20:06:49 -07:00
|
|
|
- VIRTUAL_PORT=1234
|
|
|
|
- DHPARAM_GENERATION=false
|
|
|
|
- NODE_ENV=production
|
|
|
|
- BASE_URL=${SEND_BASE_URL}
|
|
|
|
- PORT=1234
|
|
|
|
- REDIS_HOST=redis
|
|
|
|
- FILE_DIR=/uploads
|
2022-07-09 23:43:57 -07:00
|
|
|
- MAX_FILE_SIZE=42949672960
|
2022-05-13 20:06:49 -07:00
|
|
|
labels:
|
|
|
|
- traefik.http.routers.send.rule=Host(`send.jafner.net`)
|
|
|
|
- traefik.http.routers.send.tls.certresolver=lets-encrypt
|
2022-05-13 20:12:23 -07:00
|
|
|
- traefik.http.services.send.loadbalancer.server.port=1234
|
2022-07-15 10:56:20 -07:00
|
|
|
#- traefik.http.routers.send.middlewares=
|
2022-05-13 20:12:23 -07:00
|
|
|
|
2022-05-13 20:06:49 -07:00
|
|
|
redis:
|
|
|
|
image: 'redis:alpine'
|
2022-05-13 20:12:55 -07:00
|
|
|
container_name: send_redis
|
2022-05-13 20:28:49 -07:00
|
|
|
networks:
|
|
|
|
- send
|
2022-07-13 10:47:27 -07:00
|
|
|
restart: "no"
|
2022-05-13 20:06:49 -07:00
|
|
|
volumes:
|
|
|
|
- send-redis:/data
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
send-redis:
|
2022-05-13 20:07:28 -07:00
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
2022-05-13 20:28:49 -07:00
|
|
|
external: true
|
|
|
|
send:
|