Added redis. Updated API ports

pull/2/head
Ben Rometsch 4 years ago
parent b740ad6eeb
commit 6a03f0d0b2

@ -1,24 +1,31 @@
version: '3' version: "3"
services: services:
db: db:
image: postgres:10.6-alpine image: postgres:10.6-alpine
environment: environment:
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
POSTGRES_DB: bullettrain POSTGRES_DB: bullettrain
container_name: bullettrain_postgres
redis:
image: redis:alpine
ports:
- "6379:6379"
container_name: bullettrain_redis
api: api:
image: bullettrain/api:latest image: bullettrain/api:latest
environment: environment:
DJANGO_DB_NAME: bullettrain
DJANGO_DB_USER: postgres
DJANGO_DB_PASSWORD: password
DJANGO_DB_PORT: 5432
DJANGO_ALLOWED_HOSTS: localhost DJANGO_ALLOWED_HOSTS: localhost
DATABASE_URL: postgresql://postgres:password@db:5432/bullettrain
REDIS_URL: redis://redis:6379/
ports: ports:
- "8000:8000" - "8000:80"
depends_on: depends_on:
- db - db
- redis
links: links:
- db:db - db:db
- redis:redis
container_name: bullettrain_api
frontend: frontend:
image: bullettrain/frontend:latest image: bullettrain/frontend:latest
environment: environment:
@ -28,4 +35,4 @@ services:
- "8080:8080" - "8080:8080"
links: links:
- api:api - api:api
container_name: bullettrain_frontend

Loading…
Cancel
Save