-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
54 lines (49 loc) · 1.07 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
version: "3.9"
services:
backend:
build: ./backend
container_name: backend
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
env_file:
- .env
environment:
MINIO_SERVER_URL: http://minio:9000
MINIO_EXTERNAL_URL: http://localhost:9000
depends_on:
- db
- minio
frontend:
build: ./frontend
container_name: frontend
ports:
- "${FRONTEND_PORT}:${FRONTEND_PORT}"
env_file:
- .env
depends_on:
- backend
db:
image: postgres:15
container_name: db
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- "${DB_PORT}:${DB_PORT}"
volumes:
- db_data:/var/lib/postgresql/data
minio:
image: minio/minio
container_name: minio
env_file:
- .env
command: server /data --console-address ":${MINIO_CONSOLE_PORT}"
ports:
- "${MINIO_PORT}:${MINIO_PORT}"
- "${MINIO_CONSOLE_PORT}:${MINIO_CONSOLE_PORT}"
volumes:
- minio_data:/data
volumes:
db_data:
minio_data: