-
Notifications
You must be signed in to change notification settings - Fork 6
/
compose.yaml
40 lines (36 loc) · 896 Bytes
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Docker Compose Local Development Setup
#
# This starts a local multi-container development environment
# with Postgres, Redis, and Django.
# The configuration comes from .env/local and .env/postgres
#
# To run:
# $ make dockerbuild
# $ make dockerserve
volumes:
local_postgres_data: {}
services:
django:
build:
context: .
dockerfile: ./Dockerfile
image: sandiegopython_local_django
depends_on:
- postgres
env_file:
- ./.env/local
- ./.env/postgres
ports:
- "${SANDIEGOPYTHON_DJANGO_PORT:-8000}:8000"
# Allow us to run `docker attach` and get
# control on STDIN and be able to debug our code with interactive pdb
stdin_open: true
tty: true
postgres:
image: postgres:15.2
volumes:
- local_postgres_data:/var/lib/postgresql/data
env_file:
- ./.env/postgres
redis:
image: redis:5.0