-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (35 loc) · 1.21 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
version: '3'
networks:
web:
external: false
services:
traefik:
container_name: traefik
image: traefik:v2.2
labels:
- traefik.enable=true
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/traefik.toml:/traefik.toml
- ./traefik/traefik_dynamic.toml:/traefik_dynamic.toml
- ./traefik/acme.json:/acme.json # be sure to chmod 600 acme.json
networks:
- web
polkadot:
container_name: polkadot
image: parity/polkadot:latest
labels:
- traefik.enable=true
- traefik.http.routers.polkadot.rule=Host(`polkadot-node.polkaview.network`)
- traefik.http.routers.polkadot.tls=true
- traefik.http.routers.polkadot.tls.certresolver=lets-encrypt
- traefik.http.services.polkadot.loadbalancer.server.port=9944
#- traefik.http.routers.polkadot.middlewares=node-whitelist@file
volumes:
- /home/ubuntu/polkavolume:/polkadot
command: ['--ws-external', '--rpc-cors', 'all', '--pruning', 'archive']
networks:
- web