-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (59 loc) · 1.13 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (59 loc) · 1.13 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
version: '3.8'
services:
postgres:
image: postgres:17.0-alpine
environment:
- POSTGRES_PASSWORD=postgres_secret
- POSTGRES_USER=root
- POSTGRES_DB=expence
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgres/data
networks:
- backend
minio:
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=minio_secret
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
networks:
- backend
api:
container_name: api
build:
context: ./server
dockerfile: Dockerfile
environment:
- "SPRING_PROFILES_ACTIVE=docker"
ports:
- "8080:8080"
networks:
- backend
- frontend
depends_on:
- postgres
- minio
client:
container_name: client
build:
context: ./client
dockerfile: Dockerfile
networks:
- frontend
ports:
- "8081:80"
depends_on:
- api
networks:
backend:
frontend:
volumes:
pg_data:
minio_data: