-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
54 lines (49 loc) · 1.14 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
version: "3.5"
services:
lakefs:
container_name: "lakefs"
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
environment:
- ACCESS_KEY=testjhkjhakjhsk
- SECRET_ACCESS_KEY=testabcsasjdhaksjdhk
- REPOSITORY=test
ports:
- "8000:8000"
depends_on:
- minio-setup
- postgres
postgres:
image: postgres
container_name: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
PGDATA: "/var/lib/postgresql/data"
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minio_root
MINIO_ROOT_PASSWORD: minio_root
MINIO_API_ROOT_ACCESS: on
command: server /data --console-address ":9001"
minio-setup:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add local http://minio:9000 minio_root minio_root;
/usr/bin/mc rm -r --force local/test;
/usr/bin/mc mb local/test;
exit 0;
"