-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (66 loc) · 1.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (66 loc) · 1.57 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
services:
db:
image: postgres:13
container_name: wep-db
environment:
- POSTGRES_DB=wep
- POSTGRES_USER=wep
- POSTGRES_PASSWORD=wep
volumes:
- postgres_data_dev:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wep -d wep"]
interval: 5s
timeout: 5s
retries: 5
fe:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: wep-fe
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- NODE_ENV=development
command: yarn dev --port 3000 --host 0.0.0.0
minio:
image: quay.io/minio/minio
container_name: wep-minio
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: wep_root
MINIO_ROOT_PASSWORD: weppassword
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
minio-init:
image: minio/mc
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
mc alias set local http://minio:9000 wep_root weppassword;
mc mb -p local/recipes;
mc mb -p local/weeks;
mc mb -p local/users;
mc anonymous set public local/recipes;
mc anonymous set public local/weeks;
mc anonymous set public local/users;
exit 0;
"
volumes:
minio_data:
postgres_data_dev: