-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (51 loc) · 1.2 KB
/
docker-compose.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
version: "3"
services:
db:
image: postgres
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- db-data:/var/lib/postgresql/data
dev-content-nginx:
image: nginx:latest
ports:
- "4000:80"
volumes:
- ./nginx/dev-content.conf:/etc/nginx/conf.d/default.conf
- ../staging-content:/usr/share/nginx/html
minio:
image: minio/minio:latest
entrypoint: sh
ports:
- "9000:9000"
- "9001:9001"
command: -c 'minio server --console-address ":9001" /data'
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
volumes:
- minio-data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 minio minio123;
/usr/bin/mc mb myminio/images;
/usr/bin/mc anonymous set public myminio/images;
exit 0;
"
volumes:
db-data:
minio-data: