parent
0d23e8c434
commit
4f66c073e3
@ -1,31 +1,46 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
db:
|
|
||||||
image: postgres:10.6-alpine
|
|
||||||
environment:
|
|
||||||
POSTGRES_PASSWORD: password
|
|
||||||
POSTGRES_DB: flagsmith
|
|
||||||
container_name: flagsmith_postgres
|
|
||||||
api:
|
api:
|
||||||
image: flagsmith/flagsmith-api:latest
|
image: flagsmith/flagsmith-api:latest
|
||||||
environment:
|
environment:
|
||||||
DJANGO_ALLOWED_HOSTS: "*" # Change this in production
|
DJANGO_ALLOWED_HOSTS: "*" # Change this in production
|
||||||
DATABASE_URL: postgresql://postgres:password@db:5432/flagsmith
|
DATABASE_URL: postgresql://postgres:password@db:5432/flagsmith
|
||||||
|
INFLUXDB_URL: http://influxdb:8086
|
||||||
|
INFLUXDB_BUCKET: flagsmith_api
|
||||||
|
INFLUXDB_ORG: # Add your influx org id here - see readme.md
|
||||||
|
INFLUXDB_TOKEN: # Add your influx token here - see readme.md
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
links:
|
links:
|
||||||
- db:db
|
- db:db
|
||||||
|
- influxdb:influxdb
|
||||||
container_name: flagsmith_api
|
container_name: flagsmith_api
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
image: flagsmith/flagsmith-frontend:latest
|
image: flagsmith/flagsmith-frontend:latest
|
||||||
environment:
|
environment:
|
||||||
# You might need to change the 2 host names below depending on your docker dns setup
|
# You might need to change the 2 host names below depending on your docker dns setup
|
||||||
API_URL: http://localhost:8000/api/v1/
|
API_URL: http://localhost:8000/api/v1/
|
||||||
ASSET_URL: http://locahost:8080/
|
ASSET_URL: http://localhost:8080/
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
links:
|
links:
|
||||||
- api:api
|
- api:api
|
||||||
container_name: flagsmith_frontend
|
container_name: flagsmith_frontend
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:10.6-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
POSTGRES_DB: flagsmith
|
||||||
|
container_name: flagsmith_postgres
|
||||||
|
|
||||||
|
influxdb:
|
||||||
|
image: quay.io/influxdb/influxdb:v2.0.3
|
||||||
|
container_name: flagsmith_influxdb
|
||||||
|
ports:
|
||||||
|
- "8086:8086"
|
||||||
|
|
Loading…
Reference in new issue