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

44 lines
1.0 KiB

version: "3"
5 years ago
services:
db:
image: postgres:10.6-alpine
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: bullettrain
container_name: bullettrain_postgres
redis:
image: redis:alpine
ports:
- "6379:6379"
container_name: bullettrain_redis
5 years ago
api:
image: bullettrain/api:latest
environment:
DJANGO_ALLOWED_HOSTS: localhost
DATABASE_URL: postgresql://postgres:password@db:5432/bullettrain
4 years ago
DJANGO_DB_HOST: db
DJANGO_DB_NAME: bullettrain
DJANGO_DB_USER: postgres
DJANGO_DB_PASSWORD: password
DJANGO_DB_PORT: 5432
REDIS_URL: redis://redis:6379/
5 years ago
ports:
- "8000:8000"
5 years ago
depends_on:
- db
- redis
5 years ago
links:
- db:db
- redis:redis
container_name: bullettrain_api
5 years ago
frontend:
image: bullettrain/frontend:latest
environment:
API_URL: http://localhost:8000/api/v1/
ASSET_URL: http://localhost:8080/
ports:
- "8080:8080"
links:
- api:api
container_name: bullettrain_frontend