-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 1.01 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
version: '3.7'
services:
postgres:
image: postgres:11.2-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- ./volumes/postgres/:/var/lib/postgresql/data/
postgraphile:
image: stephaneklein/poc-postgraphile-react-upload-to-s3:latest
ports:
- 5000:5000
environment:
GRAPHQL_API_DATABASE_STRING_URL: postgres://postgres:password@postgres:5432/postgres
GRAPHQL_API_S3_ATTACHMENTS_ENABLE: 1
GRAPHQL_API_S3_ATTACHMENTS_ENDPOINT: s3
s3:
image: minio/minio:RELEASE.2020-04-23T00-58-49Z
environment:
MINIO_ACCESS_KEY: admin
MINIO_SECRET_KEY: password
ports:
- "9000:9000"
volumes:
- ./volumes/minio/:/data
entrypoint: sh
command: >
-c 'mkdir -p /data/attachments/ && /usr/bin/minio server /data'