-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 949 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 949 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
43
44
45
46
47
48
49
version: '3.8'
services:
frontend:
build:
context: .
dockerfile: docker/Dockerfile.frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_WS_URL=http://localhost:3001
volumes:
- ./src:/app/src
- ./public:/app/public
depends_on:
- backend
backend:
build:
context: .
dockerfile: docker/Dockerfile.backend
ports:
- "3001:3001"
environment:
- PORT=3001
- FRONTEND_URL=http://localhost:3000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./src/server:/app
networks:
- devops-dojo-net
postgres:
image: postgres:14
environment:
- POSTGRES_DB=devopslearn
- POSTGRES_USER=devops
- POSTGRES_PASSWORD=devopspass
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- devops-dojo-net
networks:
devops-dojo-net:
driver: bridge
volumes:
postgres_data: