-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (67 loc) · 2.49 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
61
62
63
64
65
66
67
68
version: "3.4"
services:
migrate: &rototiller_service
image: &rototiller_image ghcr.io/logsquaredn/rototiller:${ROTOTILLER_TAG:-latest}
build: .
command: migrate --postgres-addr=postgres:5432
depends_on: &rototiller_depends_on [minio, postgres, rabbitmq]
environment: &rototiller_environment
AWS_ACCESS_KEY_ID: rototiller
AWS_SECRET_ACCESS_KEY: rototiller
AWS_REGION: us-east-1
S3_DISABLE_SSL: "true"
S3_FORCE_PATH_STYLE: "true"
S3_ENDPOINT: http://minio:9000/
POSTGRES_USERNAME: rototiller
POSTGRES_PASSWORD: rototiller
POSTGRES_SSLMODE: disable
AMQP_USERNAME: rototiller
AMQP_PASSWORD: rototiller
STRIPE_API_KEY: ${STRIPE_API_KEY}
ROTOTILLER_SMTP_USERNAME: ${ROTOTILLER_SMTP_USERNAME}
ROTOTILLER_SMTP_PASSWORD: ${ROTOTILLER_SMTP_PASSWORD}
api:
<<: *rototiller_service
command: api --amqp-addr=rabbitmq:5672 --postgres-addr=postgres:5432 --bucket-addr=rototiller
ports: ["8080:8080"]
worker: &worker_service
<<: *rototiller_service
command: worker --amqp-addr=rabbitmq:5672 --postgres-addr=postgres:5432 --bucket-addr=rototiller
volumes: ["./hack/rototiller:/var/lib/rototiller:z"]
proxy:
<<: *rototiller_service
entrypoint: rotoproxy
command: --proxy-addr=http://api:8080/ --smtp-from=${ROTOTILLER_SMTP_USERNAME:-rototiller@logsquaredn.io} --key=rototiller
depends_on: [ui]
ports: ["8081:8080"]
ui:
<<: *rototiller_service
entrypoint: rotoui
command: --proxy-addr=http://proxy:8080/
depends_on: [api]
ports: ["8082:8080"]
worker-alt: *worker_service
secretary:
<<: *rototiller_service
command: secretary --postgres-addr=postgres:5432 --bucket-addr=rototiller --archive-bucket-addr=rototiller-archive
postgres:
image: postgres:${POSTGRES_TAG:-alpine}
ports: ["5432:5432"]
volumes: ["./hack/postgresql:/var/lib/postgresql"]
environment:
POSTGRES_DB: rototiller
POSTGRES_USER: rototiller
POSTGRES_PASSWORD: rototiller
rabbitmq:
image: rabbitmq:${RABBITMQ_TAG:-alpine}
privileged: true
ports: ["5672:5672", "15672:15672"]
volumes: ["./hack/rabbitmq/lib:/var/lib/rabbitmq:z", "./hack/rabbitmq/etc:/etc/rabbitmq:ro"]
minio:
image: minio/minio:${MINIO_TAG:-latest}
command: server /var/lib/minio --console-address ":9001"
volumes: ["./hack/minio:/var/lib/minio:z"]
ports: ["9000:9000", "9001:9001"]
environment:
MINIO_ROOT_USER: rototiller
MINIO_ROOT_PASSWORD: rototiller