forked from growthbook/growthbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.proxy.yml
39 lines (36 loc) · 973 Bytes
/
docker-compose.proxy.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
version: "3"
services:
mongo:
image: "mongo:latest"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
growthbook:
image: "growthbook/growthbook:latest"
ports:
- "3000:3000"
- "3100:3100"
depends_on:
- mongo
environment:
- MONGODB_URI=mongodb://root:password@mongo:27017/growthbook?authSource=admin
# Proxy settings
- PROXY_ENABLED=1
- PROXY_HOST_INTERNAL=http://proxy:3300
- PROXY_HOST_PUBLIC=http://localhost:3300
# Change this to something secure in production!
- SECRET_API_KEY=dev
volumes:
- uploads:/usr/local/src/app/packages/back-end/uploads
proxy:
image: "growthbook/proxy:latest"
ports:
- "3300:3300"
depends_on:
- growthbook
environment:
- GROWTHBOOK_API_HOST=http://growthbook:3100
# This must match the SECRET_API_KEY above
- SECRET_API_KEY=dev
volumes:
uploads: