-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 952 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 952 Bytes
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
version: "3.9"
services:
app:
build: .
image: image-uploader-app
container_name: image-uploader-app
env_file: .env
environment:
UPLOAD_DIR: /data/uploads
DB_URL: postgresql+psycopg2://cdn:cdn@db:5432/cdn
ENABLE_CLEANER: "true"
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-change-me}
MEGA_BACKUP_ENABLED: ${MEGA_BACKUP_ENABLED:-false}
MEGA_EMAIL: ${MEGA_EMAIL:-}
MEGA_PASSWORD: ${MEGA_PASSWORD:-}
MEGA_FOLDER_NAME: ${MEGA_FOLDER_NAME:-ImageUploaderBackups}
depends_on:
db:
condition: service_healthy
volumes:
- uploads-data:/data/uploads
ports:
- "8000:8000"
db:
image: postgres:16
restart: always
environment:
POSTGRES_DB: cdn
POSTGRES_USER: cdn
POSTGRES_PASSWORD: cdn
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cdn -d cdn"]
interval: 10s
timeout: 5s
retries: 5
volumes:
uploads-data: