-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.dev.yml
executable file
·70 lines (65 loc) · 1.33 KB
/
docker-compose.dev.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
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
- ./conf.dev.json/:/app/conf.dev.json
db:
image: library/postgres:14.2-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:5.0-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