-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
72 lines (68 loc) · 1.57 KB
/
docker-compose.override.yml
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
services:
postgres:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
# volumes:
# - ./postgres-data:/var/lib/postgresql/data
minio:
image: quay.io/minio/minio:latest
command: server /data --console-address ":9001"
expose:
- "9000"
- "9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
# interval: 30s
# timeout: 20s
# retries: 3
interval: 5s
timeout: 5s
retries: 5
hostname: minio
# volumes:
# - minio:/data1
bootstrap:
build:
context: ./
dockerfile: ./packages/bootstrap/Dockerfile
depends_on:
minio:
condition: service_healthy
env_file:
- ./packages/bootstrap/.env
environment:
- INVENTORY_FOLDER=/inventory
volumes:
- ./inventory:/inventory
seed:
build:
context: ./
dockerfile: ./packages/prismatic/Dockerfile
env_file:
- ./packages/prismatic/.env
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/postgres
depends_on:
postgres:
condition: service_healthy
volumes:
- ./inventory:/inventory
volumes:
minio: