-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (43 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
44 lines (43 loc) · 1.09 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
# Docker services for test / dev environment
version: '3.0'
services:
s3:
image: minio/minio
ports:
- '9000:9000'
command: minio server /export
environment:
- MINIO_ACCESS_KEY=fake_access
- MINIO_SECRET_KEY=fake_secret
s3_init:
image: minio/mc:latest
depends_on:
- s3
entrypoint: >
/bin/sh -c "
sleep 5 &&
mc alias set minio http://s3:9000 fake_access fake_secret --api S3v4 &&
mc mb minio/project || true &&
mc mb minio/upload || true &&
mc mb minio/publicupload || true &&
mc mb minio/image || true &&
mc anonymous set download minio/publicupload || true &&
mc anonymous set download minio/image || true &&
exit 0
"
postgres:
image: postgres
ports:
- '5432:5432'
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_USER=postgres
- POSTGRES_DB=master
postgres_project1:
image: postgres
ports:
- '5433:5432'
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_USER=postgres
- POSTGRES_DB=master