forked from codam-coding-college/find-peers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
42 lines (39 loc) · 1.04 KB
/
docker-compose.yaml
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
version: "3.7"
services:
datadog-agent:
container_name: datadog-agent
image: gcr.io/datadoghq/agent:latest
pid: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc/:/host/proc/:ro
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
env_file: ./env/.env
environment:
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
ports:
- 8125:8125/udp
find-peers:
container_name: find-peers
restart: unless-stopped
image: ghcr.io/codam-coding-college/find-peers/find-peers:latest
volumes:
- $HOME/find-peers/database:/app/database
env_file: ./env/.env
environment:
- PORT=8080
ports:
- 80:8080
# - 8080:8080
watchtower:
container_name: watchtower
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: find-peers
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_INCLUDE_RESTARTING=true
- WATCHTOWER_POLL_INTERVAL=30
- WATCHTOWER_ROLLING_RESTART=true