-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (98 loc) · 2.02 KB
/
docker-compose.yml
File metadata and controls
107 lines (98 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: "3.9"
services:
nginx-reverse:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./certs:/etc/nginx/certs:ro
networks:
- internal
depends_on:
- idk-backend
- idk-frontend
- idk-frontend-2
idk-frontend:
build:
context: ../idk-frontend
dockerfile: ./Dockerfile
networks:
- internal
expose:
- 80
restart: always
idk-frontend-2:
build:
context: ../idk-frontend-2/client-webshop
dockerfile: ./Dockerfile
networks:
- internal
expose:
- 80
restart: always
idk-backend:
build:
context: ../idk-backend
dockerfile: ./Dockerfile
environment:
- SPRING_DATASOURCE_USERNAME
- SPRING_DATASOURCE_PASSWORD
- SPRING_DATASOURCE_URL
depends_on:
- db
- minio
networks:
- internal
expose:
- 8080
restart: always
db:
image: postgres:latest
ports:
- "5432:5432" # For development purposes (remove before deployment)
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin1234
POSTGRES_DB: idk
volumes:
- db-data:/var/lib/postgresql/data
networks:
- internal
expose:
- 5432
restart: always
minio-setup:
image: minio/mc
depends_on:
- minio
entrypoint: [ "/bin/sh", "-c", "sh /setup/minio-setup.sh" ]
networks:
- internal
volumes:
- ./minio-setup.sh:/setup/minio-setup.sh
- ./minio-policy.json:/setup/minio-policy.json
minio:
image: minio/minio
container_name: minio
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: admin1234
volumes:
- minio-data:/data
networks:
- internal
expose:
- 9000
ports:
- "9001:9001" # Allow for management
command: server /data --console-address ":9001"
restart: always
networks:
internal:
driver: bridge
external: false
volumes:
db-data:
minio-data: