forked from HaschekSolutions/pictshare
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
61 lines (60 loc) · 2.1 KB
/
docker-compose-dev.yml
File metadata and controls
61 lines (60 loc) · 2.1 KB
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
56
57
58
59
60
61
version: '3.9'
services:
pictshare:
build:
context: .
dockerfile: docker/Dockerfile
environment:
- URL=http://localhost:8080/
- MAX_UPLOAD_SIZE=1000
# Security settings
- ADMIN_PASSWORD=test # password for the admin panel. if empty, admin panel is disabled
- ALLOWED_SUBNET= #IP address or subnet mask to allow upload to the server
- CONTENTCONTROLLERS= # limit uploaded file types
- MASTER_DELETE_CODE= # code to delete all files
- MASTER_DELETE_IP= # IP address to delete all files even without delete code
- UPLOAD_FORM_LOCATION= # moves the upload form from / to whatever you set here
- UPLOAD_CODE= # if set, requires this code to upload files via api or web
# image settings settings
- ALLOW_BLOATING=false
- JPEG_COMPRESSION=
- PNG_COMPRESSION=
- ALWAYS_WEBP=false # if true, will always serve webp images if the request included the capability
# alternate folder. all uploads will also be copied to this folder
- ALT_FOLDER=
# s3 settings
- S3_BUCKET=
- S3_ACCESS_KEY=
- S3_SECRET_KEY=
- S3_ENDPOINT=
- S3_REGION=
# FTP settings
- FTP_SERVER=
- FTP_PORT=
- FTP_USER=
- FTP_PASS=
- FTP_PASSIVEMODE=
- FTP_SSL=
- FTP_BASEDIR=
# encryption settings
- ENCRYPTION_KEY=
# logging settings
- LOG_VIEWS=true
# caching
- REDIS_CACHING=true
- REDIS_SERVER=localhost
- REDIS_PORT=6379
ports:
- 8080:80
volumes:
- ./data:/app/public/data
- ./logs:/app/public/logs
- ./src:/app/public/src
- ./web:/app/public/web
- ./tmp:/app/public/tmp
- ./tmp/redis:/var/lib/redis
- ./tests:/app/public/tests
- ./phpunit.xml:/app/public/phpunit.xml
# Run tests (uses the pictshare service image):
# docker compose -f docker-compose-dev.yml run --rm pictshare \
# php /app/public/src/lib/vendor/bin/phpunit --configuration /app/public/phpunit.xml