forked from jel-lambda/docker-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 970 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 970 Bytes
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
version: "3"
services:
db:
image: postgres:12.0-alpine
volumes:
- postgres_data_dev:/var/lib/postgresql/data/
environment:
POSTGRES_USER: "eg_user"
POSTGRES_PASSWORD: "eg_pw"
POSTGRES_DB: "eg_db"
ports:
- 5432:5432
backend:
build:
context: ./backend
args:
DJANGO_ALLOWED_HOSTS: "*"
DJANGO_SECRET_KEY: "*"
DJANGO_CORS_ORIGIN_WHITELIST: "*"
command: python manage.py runserver 0.0.0.0:8000
ports:
- 8000:8000
volumes:
- ./backend/:/backend/
expose:
- 8000
env_file:
- ./settings/dev/.env.dev
depends_on:
- db
frontend:
build:
context: ./frontend
command: ["npm", "start"]
ports:
- 80:3000
volumes:
- ./frontend/:/frontend
- ./frontend/node_modules/:/frontend/node_modules
environment:
- CI=true
- CHOKIDAR_USEPOLLING=true
tty: true
volumes:
postgres_data_dev: