-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (54 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
59 lines (54 loc) · 1.09 KB
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
54
55
56
57
58
59
version: '3.7'
services:
nginx:
image: nginx:1.17
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 8000:80
depends_on:
- backend
- frontend
postgres:
image: postgres:12
restart: unless-stopped
env_file: .env
ports:
- '5432:5432'
volumes:
- db-data:/var/lib/postgresql/data:cached
redis:
image: redis:6.2.7
restart: always
ports:
- "6379:6379"
volumes:
- redis:/data:cached
backend:
build:
context: backend
dockerfile: Dockerfile
command: python app/main.py
tty: true
volumes:
- .src/backend:/app/:cached
- .src/.docker/.ipython:/root/.ipython:cached
env_file: .env
environment:
PYTHONPATH: .
depends_on:
- "postgres"
- "redis"
frontend:
build:
context: frontend
dockerfile: Dockerfile
stdin_open: true
volumes:
- '.src/frontend:/app:cached'
- '.src/frontend/node_modules:/app/node_modules:cached'
environment:
- NODE_ENV=development
volumes:
db-data:
redis: