-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.yml
executable file
·68 lines (65 loc) · 1.4 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
version: '3.8'
services:
bitlbee:
build:
context: .
dockerfile: Dockerfile
image: docker.io/mbologna/docker-bitlbee:latest
container_name: bitlbee
restart: unless-stopped
ports:
- "6667:6667"
volumes:
- ./data:/var/lib/bitlbee
user: "${UID}:${GID}" # Needed for VOLUME permissions
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "6667" ]
interval: 30s
retries: 3
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
networks:
- bitlbee-net
deploy:
resources:
limits:
memory: 512m
cpus: "1.0"
reservations:
memory: 256m
stunnel:
image: docker.io/dweomer/stunnel:latest
container_name: bitlbee-stunnel
restart: always
ports:
- "16697:6697"
environment:
- STUNNEL_SERVICE=bitlbee-stunnel
- STUNNEL_ACCEPT=6697
- STUNNEL_CONNECT=bitlbee:6667
depends_on:
- bitlbee
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "6697" ]
interval: 30s
retries: 3
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
networks:
- bitlbee-net
deploy:
resources:
limits:
memory: 256m
cpus: "1.0"
reservations:
memory: 128m
networks:
bitlbee-net:
driver: bridge