-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
76 lines (70 loc) · 1.22 KB
/
docker-compose.yaml
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
version: '3.8'
services:
api:
build:
context: .
dockerfile: ./Dockerfile
depends_on:
db:
condition: service_healthy
env_file:
- .env
command: ./tit
ports:
- "8080:8080"
logging:
options:
max-size: "10m"
max-file: "3"
db:
image: postgres:latest
restart: always
user: postgres
volumes:
- db-data:/var/lib/postgresql/data
env_file:
- .env
ports:
- 5431:5432
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
logging:
options:
max-size: "10m"
max-file: "3"
react-app:
build:
context: ./web
dockerfile: Dockerfile
volumes:
- ./web:/app
ports:
- "8082:8082"
environment:
- NODE_ENV=development
depends_on:
- api
minio:
image: docker.io/bitnami/minio:2022
ports:
- '9000:9000'
- '9001:9001'
volumes:
- 'minio_data:/data'
env_file:
- .env
adminer:
image: adminer
restart: always
ports:
- "8081:8080"
volumes:
db-data:
name: db-data
driver: local
minio_data:
name: minio_data
driver: local