diff options
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index f8316af..646cb11 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,35 +1,36 @@ services: send: profiles: [services] - image: 'registry.gitlab.com/timvisee/send:v3.4.27' + build: + context: ./send restart: always ports: - '1234:1234' - volumes: - - /uploads:/uploads environment: - VIRTUAL_PORT=1234 - VIRTUAL_HOST=send.ediblemonad.dev - LETSENCRYPT_HOST=send.ediblemonad.dev - DHPARAM_GENERATION=false - # - LETSENCRYPT_EMAIL=ediblemonad@gmail.com + # send - NODE_ENV=production - BASE_URL=https://send.ediblemonad.dev - PORT=1234 - REDIS_HOST=redis - FILE_DIR=/uploads - # upload limits - - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000,31536000 + - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000 - DEFAULT_EXPIRE_SECONDS=86400 - - MAX_EXPIRE_SECONDS=31536000 + - MAX_EXPIRE_SECONDS=2592000 # 30 days - MAX_DOWNLOADS=100 - - MAX_FILE_SIZE=1073741824 + - MAX_FILE_SIZE=536870912 # 512M + volumes: + - ${SEND_UPLOADS_ROOT:-/uploads}:/uploads depends_on: - redis cgit: profiles: [services] - image: 'joseluisq/alpine-cgit:2.9' + build: + context: ./cgit restart: always ports: - 8080:80 @@ -39,12 +40,12 @@ services: - LETSENCRYPT_HOST=git.ediblemonad.dev - DHPARAM_GENERATION=false - USE_CUSTOM_CONFIG=true + - GIT_REPOS_ROOT=${GIT_REPOS_ROOT:-/git} volumes: - cgit-cache:/var/cache/cgit - - /home/imsohexy/dev/projects:/srv/git:ro + - ${GIT_REPOS_ROOT:-/git}:/srv/git:ro - ./cgit/cgitrc:/etc/cgitrc:ro - ./cgit/static:/usr/share/webapps/cgit/ediblemonad:ro - - ./cgit/nginx.conf:/etc/nginx/conf.d/default.conf:ro - ./cgit/filters:/usr/lib/cgit/filters/ediblemonad:ro - ./favicon.ico:/usr/share/webapps/cgit/favicon.ico:ro @@ -73,7 +74,7 @@ services: - DEFAULT_EMAIL=ediblemonad@gmail.com - NGINX_PROXY_CONTAINER=nginx-proxy - NGINX_DOCKER_GEN_CONTAINER=nginx-proxy - - ACME_CA_URI=https://acme-staging-v02.api.letsencrypt.org/directory + # - ACME_CA_URI=https://acme-staging-v02.api.letsencrypt.org/directory volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - proxy-certs:/etc/nginx/certs |
