-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.51 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
49
50
51
52
53
# Docker-compose configuration for development
version: '2'
services:
django:
build:
context: .
dockerfile: Dockerfile-django
ports:
- "3000:80"
volumes:
- "./parrot_mania:/app"
- ".data/media:/files/media"
environment:
- PYTHONUNBUFFERED=0
# Add -Wall option to see the (deprecation) warnings
# command: python -Wall manage.py runserver 0.0.0.0:80
command: python manage.py runserver 0.0.0.0:80
entrypoint: /usr/bin/wait-for-it.sh postgres:5432 -t 60 --
depends_on:
- postgres
- redis
node:
build:
context: .
dockerfile: Dockerfile-node
ports:
- "8000:8000"
- "8001:8001"
volumes:
- "./app:/app"
- ".data/node_modules:/app/node_modules"
depends_on:
- django
postgres:
image: postgres:10
# 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: parrot_mania
POSTGRES_PASSWORD: parrot_mania
redis:
image: redis:4.0.10-alpine
volumes:
- ".data/redis:/data"