-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 1.57 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
# Example docker file that is deployed to https://weights.tasty.limo.
# For adotion you can change the username from `vados` to your own and get some certs.
# Branch `master` is deployed to 443 and `dev` to 8443.
# The docker watchtower tries to update the container images every two minutes.
version: "3"
services:
swc_master:
container_name: swc_master
image: ghcr.io/ggwpez/swc:master
ports:
- "443:8080"
command: >
sh -c "git config --global --add safe.directory '*' &&
subweight-web --root /repos/ --repos substrate polkadot cumulus chain --endpoint '0.0.0.0' --cert /certs/cert.pem --key /certs/key.pem"
volumes:
- /home/vados/certs:/certs:ro
- /home/vados/repos:/repos
healthcheck:
test: ["CMD", "curl", "-f", "0.0.0.0:8080"]
interval: 60s
timeout: 10s
retries: 10
swc_dev:
container_name: swc_dev
image: ghcr.io/ggwpez/swc:dev
ports:
- "8443:8080"
command: >
sh -c "git config --global --add safe.directory '*' &&
subweight-web --root /repos/ --repos acala substrate polkadot cumulus chain --endpoint '0.0.0.0' --cert /certs/cert.pem --key /certs/key.pem"
volumes:
- /home/vados/certs:/certs:ro
- /home/vados/repos:/repos
healthcheck:
test: ["CMD", "curl", "-f", "0.0.0.0:8080"]
interval: 60s
timeout: 10s
retries: 10
watchtower:
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# Check every two minutes
command: --interval 120 swc_master swc_dev