-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
96 lines (90 loc) · 1.98 KB
/
docker-compose.yml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3'
services:
db:
image: postgres:latest
environment:
POSTGRES_USER: binam
POSTGRES_PASSWORD: Bhandari
POSTGRES_DB: binam
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U binam"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- postgres_data:/var/lib/postgresql/data
networks:
- app-network
restart: always
minio-server:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data
volumes:
- minio_data:/data
- ./minio-cors.json:/config/minio/cors.json
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- app-network
userform:
build:
context: ./userform
dockerfile: Dockerfile
environment:
DB_HOST: db
DB_PORT: "5432"
DB_USER: binam
DB_PASSWORD: Bhandari
DB_NAME: binam
MINIO_ENDPOINT: minio-server:9000
MINIO_ACCESS_KEY: "DXeRSzJ1flBOehb5Bc1o"
MINIO_SECRET_KEY: "tgCTzYPo8YeWzktmIl9A35PqR1TsiPN8wjOtslii"
MINIO_SSL: "false"
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
minio-server:
condition: service_healthy
networks:
- app-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/app
- /app/node_modules
- ./certs:/app/certs
ports:
- "5173:80"
environment:
- CHOKIDAR_USEPOLLING=true
- HTTPS=true
networks:
- app-network
volumes:
minio_data:
driver: local
postgres_data:
external: true
userform_data:
driver: local
frontend_data:
driver: local
networks:
app-network:
driver: bridge