-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (53 loc) · 1.12 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
services:
simplegit:
build: .
ports:
- "3000:3000"
- "2222:2222"
volumes:
- ./repositories:/app/repositories
- ./data:/app/data
- ./ssh:/app/ssh
environment:
- SIMPLEGIT_PORT=3000
- SIMPLEGIT_SSH_PORT=2222
- SIMPLEGIT_JWT_SECRET=change-me-in-production
- SIMPLEGIT_DOMAIN=localhost
- SIMPLEGIT_MAX_FILE_SIZE=10485760
- TS_SERVICE_URL=http://ts-worker:3001
restart: unless-stopped
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 128M
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
networks:
- backend
ts-worker:
build:
context: ./services/ts-worker
dockerfile: Dockerfile
environment:
- NODE_ENV=production
- SIMPLEGIT_URL=http://localhost:3000
restart: unless-stopped
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 64M
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
networks:
- backend
networks:
backend:
driver: bridge