forked from Worklenz/worklenz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 980 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
version: '3.8'
services:
frontend:
build:
context: ./worklenz-frontend
dockerfile: Dockerfile
container_name: worklenz_frontend
ports:
- "4200:4200"
volumes:
- ./worklenz-frontend:/app
networks:
- worklenz_network
backend:
build:
context: ./worklenz-backend
dockerfile: Dockerfile
container_name: worklenz_backend
ports:
- "3000:3000"
depends_on:
- db
environment:
- DATABASE_URL=postgres://worklenz_user:worklenz_password@db:5432/worklenz_db
volumes:
- ./worklenz-backend:/app
networks:
- worklenz_network
db:
image: postgres:15.6
container_name: worklenz_db
environment:
POSTGRES_USER: worklenz_user
POSTGRES_PASSWORD: worklenz_password
POSTGRES_DB: worklenz_db
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- worklenz_network
volumes:
postgres_data:
networks:
worklenz_network: