-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose.yaml
102 lines (95 loc) · 2.15 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
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
version: '3'
services:
postgres:
container_name: postgres
image: postgres:15-alpine
restart: always
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=doggr
- POSTGRES_PASSWORD=doggr
- POSTGRES_DB=doggr
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U doggr" ]
interval: 10s
timeout: 5s
retries: 25
minio:
container_name: minio
image: docker.io/bitnami/minio:latest
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_DEFAULT_BUCKETS=doggr:public
- MINIO_ROOT_USER=minioUser
- MINIO_ROOT_PASSWORD=minioPass
- MINIO_SERVER_ACCESS_KEY=minioUser
- MINIO_SERVER_SECRET_KEY=minioPass
volumes:
- minio_data:/data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 10s
timeout: 5s
retries: 25
backend:
container_name: backend
build: ./backend/
restart: always
ports:
- "8080:8080"
environment:
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=doggr
- DB_USER=doggr
- DB_PASS=doggr
- PORT=8080
- HOST=0.0.0.0
- PASSWORD=password
- NODE_ENV=development
- AUTH_SECRET=supersecret219340818092358
- MINIO_HOST=localhost
- MINIO_PORT=9000
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
frontend:
container_name: frontend
build: ./frontend/
restart: always
ports:
- "80:80"
environment:
- API_HOST=backend
- PORT=8080
- MINIO_HOST=minio
- MINIO_PORT=9000
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
auth_rs:
container_name: auth_rs
build: ./auth_rs/
restart: always
ports:
- "3333:3333"
environment:
- DATABASE_URL=postgres://doggr:doggr@postgres/doggr
- AUTH_SECRET=superSecret
depends_on:
postgres:
condition: service_healthy
volumes:
minio_data:
driver: local
db:
driver: local