-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (34 loc) · 929 Bytes
/
docker-compose.yml
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
version: "2"
services:
db:
image: postgres
container_name: open_elections_peru_db
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- /usr/lib/postgresql
- .:/usr/app/
web: &web
build: .
container_name: open_elections_peru_web
command: "python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
volumes:
- .:/usr/app
working_dir: /usr/app
links:
- db:db
- redis:redis
environment:
PYTHONPATH: /usr/app/project
DJANGO_SETTINGS_MODULE: project.settings.local
SHELL: /bin/bash
redis:
image: redis:latest
container_name: open_elections_peru_redis
restart: always
ports:
- "6379:6379"