-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-privatenetwork.yml
54 lines (48 loc) · 1.16 KB
/
docker-compose-privatenetwork.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
version: "3"
x-logging:
&default-logging
options:
max-file: '1'
compress: 'false'
driver: local
networks:
subquery_indexer:
name: subquery_indexer
external: true
services:
wireguard:
image: lscr.io/linuxserver/wireguard:${WIREGUARD_VERSION:-latest}
container_name: wireguard
networks:
subquery_indexer:
ipv4_address: ${DOCKER_SUBNET_PREFIX}.11
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- SERVERPORT=${WIREGUARD_PORT}
- PEERS=${WIREGUARD_PEERS:-2}
# - PEERDNS=auto
- INTERNAL_SUBNET=${WIREGUARD_SUBNET}
- ALLOWEDIPS=${WIREGUARD_SUBNET}/24,${DOCKER_SUBNET_MASK}/24
volumes:
- .data/wireguard/config:/config
ports:
- ${WIREGUARD_PORT}:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
logging: *default-logging
restart: unless-stopped
pushgateway:
image: prom/pushgateway
container_name: pushgateway
restart: unless-stopped
expose:
- 9091
networks:
subquery_indexer:
ipv4_address: ${DOCKER_SUBNET_PREFIX}.14
logging: *default-logging