forked from aahil80150/pkgstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
35 lines (32 loc) · 892 Bytes
/
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
version: '3.4'
services:
pkgstore:
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
LISTEN_ADDRESS: ":8080"
DATABASE_URL: "postgres://postgres:postgres@postgres:5432/pkgstore?sslmode=disable"
STORAGE_BACKEND: "s3"
S3_BUCKET: "pkgstore"
S3_API_HOST: "http://minio:9000"
S3_API_KEY: "minioadmin"
S3_API_SECRET: "minioadmin"
ports:
- "8080:8080"
minio:
image: quay.io/minio/minio:latest
restart: always
entrypoint: bash -c "mkdir -p /data/pkgstore && /usr/bin/docker-entrypoint.sh $0 $@"
command: "server /data --console-address :9090"
ports:
- "127.0.0.1:9090:9090"
- "127.0.0.1:9000:9000"
postgres:
image: postgres:alpine
restart: always
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: pkgstore