-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 977 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
services:
database:
image: postgres:15-alpine
networks:
- nodeforum
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- nodeforum_db:/var/lib/postgresql/data
logging:
driver: none
backend:
build:
context: .
dockerfile: ./server.Dockerfile
tags:
- nodeforum/backend:latest
networks:
- nodeforum
environment:
- DB_HOST=database
- DB_PORT=5432
frontend:
build:
context: .
dockerfile: ./client.Dockerfile
tags:
- nodeforum/frontend:latest
networks:
- nodeforum
environment:
- DATABASE_URL=postgresql://database:5432
- BACKEND_URL=http://backend:4000
- BACKEND_WS_URL=ws://backend:4000
networks:
nodeforum:
volumes:
nodeforum_db: