-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (52 loc) · 1 KB
/
docker-compose.yaml
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
version: '3'
services:
db:
container_name: logdb-db
image: postgres
environment:
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- logdb-data:/var/lib/postgresql/data
networks:
- logdb
backend:
container_name: logdb-backend
user: 1000:1000
build:
context: ./backend
volumes:
- ./backend:/code
- ./static/django:/static
environment:
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- DEBUG=true
ports:
- 8000:8000
networks:
- logdb
depends_on:
- db
frontend:
container_name: logdb-frontend
user: 1000:1000
build:
context: ./frontend
command: npm start
volumes:
- ./frontend/src:/app/src
- ./static/react:/app/build
ports:
- 3000:3000
networks:
- logdb
depends_on:
- backend
volumes:
logdb-data:
networks:
logdb:
driver: bridge