forked from rust-lang/docs.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (60 loc) · 1.64 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
54
55
56
57
58
59
60
version: "3"
services:
web:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile
depends_on:
- db
- s3
ports:
- "3000:3000"
# for metrics
expose: ["3000"]
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- ".rustwide-docker:/opt/docsrs/rustwide"
- "cratesio-index:/opt/docsrs/prefix/crates.io-index"
environment:
CRATESFYI_RUSTWIDE_WORKSPACE: /opt/docsrs/rustwide
CRATESFYI_DATABASE_URL: postgresql://cratesfyi:password@db
S3_ENDPOINT: http://s3:9000
AWS_ACCESS_KEY_ID: cratesfyi
AWS_SECRET_ACCESS_KEY: secret_key
env_file:
- .env
db:
build:
context: ./dockerfiles
dockerfile: ./Dockerfile-postgres
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: cratesfyi
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
s3:
image: minio/minio
entrypoint: >
/bin/sh -c "
mkdir -p /data/rust-docs-rs;
minio server /data;
"
ports:
- "9000:9000"
volumes:
- minio-data:/data
environment:
MINIO_ACCESS_KEY: cratesfyi
MINIO_SECRET_KEY: secret_key
prometheus:
build:
context: ./dockerfiles
dockerfile: ./Dockerfile-prometheus
ports:
- "9090:9090"
volumes:
postgres-data: {}
minio-data: {}
cratesio-index: {}