-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 810 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 810 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:
database:
image: postgres:15
environment:
POSTGRES_USER: fullrstack
POSTGRES_PASSWORD: fullrstack
POSTGRES_DB: fullrstack
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
server:
build:
context: .
dockerfile: Dockerfile
target: server
environment:
- DATABASE_URL=postgres://fullrstack:fullrstack@database:5432/fullrstack
- RUST_LOG=info
ports:
- "8080:8080" # WebSocket
- "9090:9090" # Metrics
depends_on:
- database
web:
build:
context: .
dockerfile: Dockerfile
target: web
ports:
- "3000:3000"
environment:
- SERVER_URL=ws://localhost:8080
depends_on:
- server
volumes:
postgres_data: