-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.on-prem.yml
108 lines (102 loc) · 2.83 KB
/
docker-compose.on-prem.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '2.1'
services:
db:
image: postgres:alpine
networks:
- platform
minio:
image: minio/minio
entrypoint: sh
command: -c 'mkdir -p /buckets/reconfigureio-builds && mkdir -p /buckets/testbucket.reconfigure.io && /usr/bin/minio server /buckets'
environment:
- MINIO_ACCESS_KEY=foo
- MINIO_SECRET_KEY=foobarbaz
- MINIO_DOMAIN=minio.test
ports:
- "9000:9000"
networks:
platform:
aliases:
- reconfigureio-builds.minio.test
- testbucket.reconfigure.io.minio.test
web-base:
build: build
working_dir: /go/src/github.com/ReconfigureIO/platform
volumes:
- .:/go/src/github.com/ReconfigureIO/platform
environment:
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=foobarbaz
- S3_ENDPOINT=http://minio.test:9000/
- RECO_AWS_ENDPOINT=http://fake-batch.test:9090
- AWS_REGION=us-east-1
- DATABASE_URL=host=db user=postgres dbname=postgres sslmode=disable password=mysecretpassword
- PORT=8080
- RECO_PLATFORM_MIGRATE=1
- RECO_FEATURE_BILLING=1
- RECO_FEATURE_DEPLOY=0
- RECO_ENV=development
- RECO_HOST_NAME=local.reconfigure.io
- RECO_FEATURE_DEP_QUEUE=1
- RECO_PUBLIC_PROJECT_ID=a95550bf-bffa-42df-b100-872501940c5c
test:
extends: web-base
depends_on:
- db
- web-base
- minio
- fake-batch
networks:
- platform
fake-batch:
extends: web-base
ports:
- "9090:9090"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- web-base
- minio
networks:
platform:
aliases:
- fake-batch.test
environment:
- FAKE_BATCH_WORKER_NETWORK=platform_platform
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=foobarbaz
- S3_ENDPOINT=http://minio.test:9000/
command: bash -c "make clean dist-image/dist/fake-batch && ./dist-image/dist/fake-batch"
web:
command: bash -c "fresh"
extends: web-base
ports:
- "8080:80"
depends_on:
- db
- minio
- fake-batch
networks:
platform:
aliases:
- local.reconfigure.io
environment:
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=foobarbaz
- S3_ENDPOINT=http://minio.test:9000/
- RECO_AWS_ENDPOINT=http://fake-batch.test:9090
- AWS_REGION=us-east-1
- DATABASE_URL=host=db user=postgres dbname=postgres sslmode=disable password=mysecretpassword
- PORT=80
- RECO_PLATFORM_MIGRATE=1
- RECO_FEATURE_BILLING=1
- RECO_FEATURE_DEPLOY=0
- RECO_ENV=development-on-prem
- RECO_HOST_NAME=local.reconfigure.io
- RECO_FEATURE_DEP_QUEUE=1
- RECO_PUBLIC_PROJECT_ID=a95550bf-bffa-42df-b100-872501940c5c
networks:
platform:
driver: bridge
driver_opts:
name: "platform"