forked from Mihendy/pp_2025
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (77 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
82 lines (77 loc) · 1.64 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
name: pp_2025
services:
backend:
build:
context: ./backend
container_name: fastapi-backend
volumes:
- ./backend/src:/backend/src
working_dir: /backend/src
env_file:
- .env
depends_on:
db:
condition: service_healthy
command: uvicorn main:app --reload --host 0.0.0.0
ports:
- "8000:8000"
db:
build:
context: ./db
container_name: postgres-db
ports:
- "5433:5432"
env_file:
- .env
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}" ]
interval: 5s
retries: 5
start_period: 10s
restart: always
frontend:
build:
context: ./frontend
container_name: react-frontend
env_file:
- .env
ports:
- "80:80"
depends_on:
- backend
restart: unless-stopped
collabora:
image: collabora/code
container_name: collabora
environment:
- domain=.*
- username=${COLLABORA_USERNAME}
- password=${COLLABORA_PASSWORD}
ports:
- "9980:9980"
command: >
--o:ssl.enable=false
--o:ssl.termination=false
--o:trusted.hosts=*
restart: always
volumes:
- collabora_data:/data
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
command: server /data --console-address ":9001"
restart: always
volumes:
pg_data:
collabora_data:
minio_data: