-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (63 loc) · 1.91 KB
/
docker-compose.yml
File metadata and controls
67 lines (63 loc) · 1.91 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
62
63
64
65
66
67
version: "3.9"
services:
db:
image: postgres:16
environment:
POSTGRES_DB: e6cache
POSTGRES_USER: e6cache
POSTGRES_PASSWORD: replaceThisWithARandomPassword
volumes:
- db_data:/var/lib/postgresql/data
- ./db.sql:/docker-entrypoint-initdb.d/init.sql:ro
minio:
image: minio/minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio_data:/data
e6-cache:
image: ghcr.io/bugmaschine/e6-cache:latest
restart: unless-stopped
depends_on:
- db
- minio
environment:
# PostgreSQL
DB_HOST: db
DB_PORT: 5432
DB_NAME: e6cache
DB_USER: e6cache
DB_PASS: replaceThisWithARandomPassword
# MinIO (or anything S3-compatible, like AWS S3)
S3_ENDPOINT: http://minio:9000
S3_ACCESS_KEY: minioadmin
S3_SECRET_KEY: minioadmin
S3_BUCKET: e6cache-media
S3_REGION: us-east-1
# Proxy settings
PROXY_URL: http://localhost:8080 # Set this to the Server IP / URL, as otherwise the proxy will not work.
E6_BASE: https://e621.net
PROXY_AUTH: "" # Leave empty to disable proxy auth. If you want to use it, append like this to your username "Username:YourProxyPassword"
ports:
- "8080:8080" # Point this to an Reverse Proxy and set the Proxy Url acordingly.
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint:
- /bin/sh
- -c
- |
echo "Waiting for MinIO to be ready..."
until /usr/bin/mc alias set minio http://minio:9000 minioadmin minioadmin; do
echo "MinIO not ready yet, retrying in 2s..."
sleep 2
done
/usr/bin/mc alias set minio http://minio:9000 minioadmin minioadmin;
/usr/bin/mc mb minio/e6cache-media --ignore-existing;
exit 0;
volumes:
db_data:
minio_data: