-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.41 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
services:
# MinIO Object Storage Service
minio:
image: minio/minio:RELEASE.2024-09-13T20-26-02Z
container_name: file-sharing-minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin123
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:9000/minio/health/ready"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
networks:
- file-sharing-network
# Go Backend Service
backend:
build:
context: ./Go
dockerfile: Dockerfile
container_name: file-sharing-backend
ports:
- "8000:8000"
environment:
- LOCAL_IP=minio:9000
- ACCESS_KEY=minioadmin
- SECRET_KEY=minioadmin123
depends_on:
minio:
condition: service_healthy
networks:
- file-sharing-network
restart: unless-stopped
# Flutter Frontend Service
frontend:
build:
context: ./filesharing
dockerfile: Dockerfile
args:
API_BASE_URL: http://backend:8000
container_name: file-sharing-frontend
ports:
- "3000:80"
depends_on:
- backend
networks:
- file-sharing-network
restart: unless-stopped
volumes:
minio_data:
driver: local
networks:
file-sharing-network:
driver: bridge