-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 826 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (38 loc) · 826 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
services:
backend:
image: ${DOCKER_REGISTRY-}api:latest
build:
context: .
dockerfile: Web3D.API/Dockerfile
depends_on:
- postgres_db
env_file:
- Web3D.API/.env
client:
image: client:latest
build:
context: ./client
dockerfile: Dockerfile
ports:
- "5173:5173"
volumes:
- ./client:/app
- /app/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
command: ["npm", "run", "dev"]
postgres_db:
container_name: postgres
image: postgres:latest
ports:
- "5433:5432"
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=1234
- POSTGRES_DB=web3ddb
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data: