-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
53 lines (52 loc) · 1021 Bytes
/
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
services:
frontend:
container_name: frontend
build:
context: ./frontend/
dockerfile: Dockerfile
volumes:
- ./frontend:/app
- /app/node_modules
stdin_open: true
tty: true
ports:
- 8080:8080
environment:
- CHOKIDAR_USEPOLLING=true
env_file:
- .env.dev
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend:/code
ports:
- 8000:8000
env_file:
- .env.dev
depends_on:
- db
db:
container_name: db
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- .env.dev
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
restart: always
env_file:
- .env.dev
expose:
- 80
depends_on:
- db
ports:
- 5050:80
volumes:
postgres_data: