-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (37 loc) · 785 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (37 loc) · 785 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
42
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: rwa_postgres
environment:
POSTGRES_USER: rwa_user
POSTGRES_PASSWORD: rwa_password
POSTGRES_DB: rwa_nexus
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- rwa_network
backend:
build: ./backend
container_name: rwa_backend
ports:
- "3001:3001"
environment:
DATABASE_URL: postgresql://rwa_user:rwa_password@postgres:5432/rwa_nexus
depends_on:
- postgres
networks:
- rwa_network
frontend:
build: ./frontend
container_name: rwa_frontend
ports:
- "3000:3000"
networks:
- rwa_network
volumes:
postgres_data:
networks:
rwa_network: