-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.25 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
52
53
54
services:
http-backend:
build:
context: .
dockerfile: ./apps/http-backend/Dockerfile
container_name: draw_app_http
environment:
DATABASE_URL: "postgresql://postgres:postgrespassword@host.docker.internal:5433/drawapp?schema=public"
PORT: 4000
ports:
- "4000:4000"
networks:
- draw_network
ws-backend:
build:
context: .
dockerfile: ./apps/ws-backend/Dockerfile
container_name: draw_app_ws
environment:
PORT: 8088
DATABASE_URL: "postgresql://postgres:postgrespassword@host.docker.internal:5433/drawapp?schema=public"
HTTP_BACKEND_URL: "http://http-backend:4000"
depends_on:
http-backend:
condition: service_started
ports:
- "8088:8088"
networks:
- draw_network
frontend:
build:
context: .
dockerfile: ./apps/frontend/Dockerfile
container_name: draw_app_frontend
environment:
NEXT_PUBLIC_WS_URL: "ws://localhost:8088"
NEXT_PUBLIC_API_URL: "http://localhost:4000"
ports:
- "8000:8000"
depends_on:
http-backend:
condition: service_started
ws-backend:
condition: service_started
networks:
- draw_network
networks:
draw_network:
volumes:
postgres_data: