-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
47 lines (42 loc) · 974 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
45
46
47
version: '3'
volumes:
database:
external: false
redis:
external: false
services:
database:
image: postgres:11.6
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=password
volumes:
- database:/var/lib/postgresql/data
- ./docker/postgres:/docker-entrypoint-initdb.d
redis:
image: redis:3.2
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis:/data
web:
build:
context: .
dockerfile: Dockerfile
args:
PIPENV_ARGS: --dev
command: start-web-dev
entrypoint: /app/bin/docker-entrypoint
restart: on-failure
environment:
- PYTHONUNBUFFERED=1
- DJANGO_SECRET_KEY=dont-tell-eve
- DATABASE_URL=postgres://postgres:password@database/postgres
- REDIS_URL=redis://redis:6379
volumes:
- .:/app
ports:
- '8000:8000'
links:
- database:database
- redis:redis