You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flagsmith/docker-compose.yml

37 lines
991 B

version: "3"
5 years ago
services:
db:
image: postgres:10.6-alpine
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: flagsmith
container_name: flagsmith_postgres
5 years ago
api:
image: flagsmith/flagsmith-api:latest
5 years ago
environment:
DJANGO_ALLOWED_HOSTS: "*" # Change this in production
DATABASE_URL: postgresql://postgres:password@db:5432/flagsmith
4 years ago
DJANGO_DB_HOST: db
DJANGO_DB_NAME: flagsmith
DJANGO_DB_USER: postgres
DJANGO_DB_PASSWORD: password
DJANGO_DB_PORT: 5432
5 years ago
ports:
- "8000:8000"
5 years ago
depends_on:
- db
links:
- db:db
container_name: flagsmith_api
5 years ago
frontend:
image: flagsmith/flagsmith-frontend:latest
5 years ago
environment:
# You might need to change the 2 host names below depending on your docker dns setup
API_URL: http://localhost:8000/api/v1/
ASSET_URL: http://locahost:8080/
5 years ago
ports:
- "8080:8080"
links:
- api:api
container_name: flagsmith_frontend