-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 1.05 KB
/
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
services:
database:
image: "postgres:11.2"
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-developer}
- POSTGRES_USER=${POSTGRES_USER:-developer}
- POSTGRES_DB=${POSTGRES_DB:-django_mailviewer}
- PGDATA=${PGDATA:-/var/lib/postgresql/data/pgdata}
privileged: true
volumes:
- db:/var/lib/postgresql/data
redis:
image: 'redis:latest'
restart: on-failure
volumes:
- redis:/data
django:
image: django-mailviewer:dev
command: /bin/bash
stdin_open: true
tty: true
depends_on:
- database
- redis
working_dir: /django/mailviewer/
build:
context: .
dockerfile: Dockerfile
target: dev
environment:
- REDIS_HOST=redis
- SHELL=/bin/bash
- DATABASE_URL=postgres://developer:developer@database:5432/django_mailviewer
- LOG_LEVEL=DEBUG
ports:
- "8000:8000"
restart: on-failure
volumes:
- .:/django/mailviewer/
- ~/.gitconfig:/django/.gitconfig
- ~/.ssh:/django/.ssh
volumes:
db:
redis: