Commit 1019f765 authored by Laury Bueno's avatar Laury Bueno
Browse files

Redis and local network added

parent a5f55e79
version: '2' version: '3.5'
volumes: volumes:
db_data: {} db_data: {}
networks:
base_django_project:
name: base_django_project
services: services:
redis:
image: redis:3.2
hostname: redis
networks:
- base_django_project
django: django:
build: build:
context: . context: .
...@@ -20,6 +30,8 @@ services: ...@@ -20,6 +30,8 @@ services:
ports: ports:
- "8000:8000" - "8000:8000"
command: /runserver.sh command: /runserver.sh
networks:
- base_django_project
postgres: postgres:
image: postgres:9.6 image: postgres:9.6
...@@ -29,3 +41,5 @@ services: ...@@ -29,3 +41,5 @@ services:
- POSTGRES_DB=django - POSTGRES_DB=django
- POSTGRES_USER=django - POSTGRES_USER=django
- POSTGRES_PASSWORD=django - POSTGRES_PASSWORD=django
networks:
- base_django_project
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment