-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.23 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
version: '3.4'
services:
deploy:
build: ./
ports:
- "7777:7777"
image: "devclubiitd/deploy:${TAG:-v2.1}"
env_file:
- ./.env
environment:
- TZ=Asia/Kolkata
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7777"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
- type: volume
source: builder
target: /scratch
- type: volume
source: docker_conf
target: /root/.docker
#read_only: true
- type: bind
source: ./ignore/keys
target: /keys
read_only: true
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
- type: bind
source: /etc/nginx
target: /etc/nginx
labels:
- "in.devclub=Deploy Container"
logging:
options:
max-size: '20m'
max-file: '10'
driver: json-file
restart: always
networks:
- "internal"
volumes:
builder:
labels:
- "in.devclub=builder volume for deploy bot"
docker_conf:
labels:
- "in.devclub=configuration volume for deploy bot"
networks:
internal:
ipam:
config:
- subnet: 172.16.20.0/24