-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (69 loc) · 1.75 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (69 loc) · 1.75 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
68
69
70
71
72
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- /etc/letsencrypt:/etc/letsencrypt:ro
- ./certbot-www:/var/www/certbot:ro
environment:
- BACKEND_URL=http://backend:8000
- VITE_API_URL=https://${DOMAIN:-rustcameroon.com}/api
- DOMAIN=${DOMAIN:-rustcameroon.com}
- CERT_NAME=${CERT_NAME:-rustcameroon.com}
- NGINX_CONFIG=${NGINX_CONFIG:-https}
user: "0:0"
depends_on:
- backend
- minio
restart: unless-stopped
ulimits:
nofile:
soft: 65536
hard: 65536
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- backend_data:/app/data
- backend_images:/app/static/images
environment:
- RUST_LOG=info
- PORT=8000
- MINIO_ENDPOINT=http://minio:9000
- MINIO_ACCESS_KEY=minioadmin
- MINIO_SECRET_KEY=minioadmin123
- MINIO_BUCKET=rust-cameroon-images
depends_on:
minio:
condition: service_healthy
restart: unless-stopped
minio:
image: minio/minio:latest
ports:
- "9000:9000"
volumes:
- minio_data:/data
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin123
- MINIO_BROWSER_REDIRECT_URL=https://rustcameroon.com/minio
- MINIO_SERVER_URL=https://rustcameroon.com/minio
- MINIO_DOMAIN=rustcameroon.com
command: server /data --console-address ":9001"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
minio_data:
backend_data:
backend_images: