forked from pledge4future/WePledge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (51 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
51 lines (51 loc) · 1.16 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
version: "3.7"
services:
db:
image: postgres
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
- PGDATA=/var/lib/postgresql/data
ports:
- "5432:5432"
backend:
tty: true
restart: on-failure
build: ./backend/
volumes:
- ./backend/src:/home/python/app/src
- ./backend/assets:/home/python/app/assets
- backend_env:/home/python/.local
- backend_extensions:/home/python/.vscode-server
ports:
- "8000:8000"
depends_on:
- db
env_file: ./.env
frontend:
tty: true
build:
context: ./frontend
target: development
volumes:
- ./frontend/:/home/node/app
- frontend_nodemodules:/home/node/app/node_modules
- frontend_extensions:/home/node/.vscode-server
# depends_on:
# - cube
ports:
- "3000:3000"
env_file: ./frontend/.env.local
environment:
HOME: /home/node
volumes:
frontend_nodemodules:
frontend_extensions:
backend_env:
backend_extensions:
db_data: