-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 1.34 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
45
46
47
48
# Docker-compose configuration for development
version: '2'
services:
django:
build:
context: .
dockerfile: Dockerfile-django
ports:
- "8000:80"
volumes:
- "./slack_clone:/app"
- ".data-media:/files/media"
environment:
- PYTHONUNBUFFERED=0
command: python manage.py runserver 0.0.0.0:80
entrypoint: /usr/bin/wait-for-it.sh postgres:5432 -t 60 --
depends_on:
- node
- postgres
- redis
node:
build:
context: .
dockerfile: Dockerfile-node
volumes:
- "./slack_clone/app:/app/app"
- "./slack_clone/static:/app/static:ro"
command: npm run dev
postgres:
image: postgres:9.5
# Comment in the following lines to connect to your Dockerized instance of Postgres from your host machine.
# Change the host port (before colon) if you have a local instance of Postgres running on that port.
# ports:
# - "5432:5432"
volumes:
- ".data-postgres:/var/lib/postgresql/data"
environment:
POSTGRES_USER: slack_clone
POSTGRES_PASSWORD: slack_clone
redis:
image: redis:3.2-alpine
volumes:
- ".data-redis:/data"