forked from thenewboston-blockchain/Website-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 880 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
35
36
37
38
39
40
41
42
43
44
version: '3.2'
services:
redis:
image: redis:alpine
db:
image: postgres:12-alpine
environment:
- POSTGRES_DB=thenewboston
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
- C_FORCE_ROOT=true
volumes:
- postgresql-data:/var/lib/postgresql/data
app:
build:
dockerfile: Dockerfile
context: .
environment:
- DJANGO_APPLICATION_ENVIRONMENT=local
- REDIS_HOST=redis
- POSTGRES_HOST=db
- POSTGRES_DB=thenewboston
- POSTGRES_USER=thenewboston
- POSTGRES_PASSWORD=thenewboston
env_file:
- .env
command: python3 -u /opt/project/manage.py runserver 0.0.0.0:8000
volumes:
- .:/opt/project
ports:
- '8000:8000'
links:
- redis
- db
depends_on:
- redis
- db
volumes:
postgresql-data:
driver: local