forked from hauxir/imgpush
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·55 lines (55 loc) · 1.56 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.5'
services:
imgpush:
image: imgpush
ports:
- ${PORT:-5000}:5000
build:
dockerfile: Dockerfile
context: ./
environment:
IMAGES_DIR: ${IMAGES_DIR}
CACHE_DIR: ${CACHE_DIR}
OUTPUT_TYPE: ${OUTPUT_TYPE}
MAX_UPLOADS_PER_DAY: ${MAX_UPLOADS_PER_DAY}
MAX_UPLOADS_PER_HOUR: ${MAX_UPLOADS_PER_HOUR}
MAX_UPLOADS_PER_MINUTE: ${MAX_UPLOADS_PER_MINUTE}
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS}
NAME_STRATEGY: ${NAME_STRATEGY}
MAX_TMP_FILE_AGE: ${MAX_TMP_FILE_AGE}
RESIZE_TIMEOUT: ${RESIZE_TIMEOUT}
JWT_PUBLIC_KEY: ${JWT_PUBLIC_KEY}
JWT_ALGORITHM: ${JWT_ALGORITHM}
JWT_SECRET: ${JWT_SECRET}
UPLOAD_REQUIRE_AUTH: ${UPLOAD_REQUIRE_AUTH}
GET_REQUIRE_AUTH: ${GET_REQUIRE_AUTH}
DISABLE_RESIZE: ${DISABLE_RESIZE}
DISABLE_URL_UPLOADS: ${DISABLE_URL_UPLOADS}
DISABLE_UPLOAD_FORM: ${DISABLE_UPLOAD_FORM}
UPLOAD_ROUTE: ${UPLOAD_ROUTE}
IMAGES_ROOT: ${IMAGES_ROOT}
VALID_SIZES: ${VALID_SIZES}
MAX_SIZE_MB: ${MAX_SIZE_MB}
USE_MONGO: ${USE_MONGO}
MONGO_URI: mongodb://imgpush-mongo
DEBUG: ${DEBUG}
TZ: ${TZ:-UTC}
volumes:
- ./imgpush:/app/imgpush
- ./images:/images:Z
- ./cache:/cache:Z
networks:
- imgpush-network
mongo:
image: ${MONGO_IMAGE:-mongo:6.0}
container_name: imgpush-mongo
ports:
- ${MONGO_PORT:-27017}:27017
restart: unless-stopped
networks:
- imgpush-network
volumes:
- ./data:/data/db
networks:
imgpush-network:
driver: bridge