forked from SrabanMondal/SecureStore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (73 loc) · 2.02 KB
/
docker-compose.yml
File metadata and controls
78 lines (73 loc) · 2.02 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
73
74
75
76
77
78
services:
postgres:
image: postgres:15
container_name: securestore-postgres
environment:
POSTGRES_DB: securestore
POSTGRES_USER: securestore_user
POSTGRES_PASSWORD: securestore_pass
ports:
- "5434:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- securestore-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U securestore_user -d securestore"]
interval: 10s
timeout: 5s
retries: 5
migrate:
image: migrate/migrate:latest
container_name: securestore-migrate
volumes:
- ./migrations:/migrations
command: ["-path", "/migrations", "-database", "postgres://securestore_user:securestore_pass@postgres:5432/securestore?sslmode=disable", "up"]
depends_on:
postgres:
condition: service_healthy
networks:
- securestore-network
minio:
image: minio/minio
container_name: securestore-minio
command: server /data --console-address ":9001"
environment:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
networks:
- securestore-network
backend:
build: .
container_name: securestore-backend
environment:
DATABASE_URL: postgres://securestore_user:securestore_pass@postgres:5432/securestore?sslmode=disable
MINIO_ENDPOINT: minio:9000
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
MINIO_USE_SSL: "false"
JWT_SECRET: 0d252832fa0a32ea88e0cc27c58eba2359439b306fa51346edb739eb76f36f8c
FILE_ENC_KEY: KX9iBAHgWt4J3KE9uV4Da8hUTbwMkYQ5g5Ojb7AiPeU=
SERVER_PORT: "8080"
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_started
migrate:
condition: service_completed_successfully
networks:
- securestore-network
volumes:
postgres_data:
minio_data:
networks:
securestore-network:
driver: bridge