-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
executable file
·72 lines (66 loc) · 1.39 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.4"
services:
ui:
build:
context: ./ui/ng-ui
dockerfile: ./Dockerfile
ports:
- 80:80
restart: unless-stopped
networks:
- laforge-backend-tier
depends_on:
- backend
volumes:
- /app/node_modules/
backend:
build:
context: .
dockerfile: ./Dockerfile
restart: unless-stopped
ports:
- 8080:8080
- 50051:50051
networks:
- laforge-backend-tier
depends_on:
- redis
- db
volumes:
- ./server/builds/:/app/builds
- ./server/logs/:/app/logs
- ./server/users/:/app/users
- ./server/repos/:/app/repos
- ./configs/:/app/configs
- ./grpc/agent/static/:/app/grpc/agent/static
- ./grpc/server/static/:/app/grpc/server/static
db:
image: library/postgres:15-alpine
ports:
- 5432:5432
restart: unless-stopped
networks:
- laforge-backend-tier
volumes:
- laforge-db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=laforger
- POSTGRES_PASSWORD=laforge
- POSTGRES_DB=laforge
redis:
image: library/redis:7-alpine
ports:
- 6379:6379
restart: unless-stopped
networks:
- laforge-backend-tier
volumes:
- laforge-redis:/data
volumes:
laforge-db:
driver: local
laforge-redis:
driver: local
networks:
laforge-backend-tier:
driver: bridge