-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
50 lines (49 loc) · 949 Bytes
/
docker-compose.dev.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
version: "3.7"
services:
client:
build:
context: ./client
dockerfile: Dockerfile.dev
env_file: ./client/.env
depends_on:
- web
volumes:
- /app/node_modules
- ./client:/app
web:
build:
context: ./jabme
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./jabme:/usr/src/app
ports:
- "8000:8000"
env_file:
- ./.env.dev
depends_on:
- db
restart: always
db:
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=jabme
- POSTGRES_PASSWORD=jabme
- POSTGRES_DB=jabme_dev
mailer:
build:
context: ./mailer
dockerfile: Dockerfile
nginx:
build:
context: ./nginx
dockerfile: Dockerfile.dev
ports:
- 3000:80
depends_on:
- web
- client
volumes:
postgres_data: