-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
88 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/dev-frontend/docker-compose-example/config/nginx/site-confs/liquity.example.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
server { | ||
listen 443 ssl; | ||
|
||
server_name liquity.example.com; | ||
|
||
include /config/nginx/ssl.conf; | ||
|
||
location / { | ||
include /config/nginx/proxy.conf; | ||
resolver 127.0.0.11 valid=5s; | ||
set $container dev-frontend; | ||
proxy_pass http://$container; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
packages/dev-frontend/docker-compose-example/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: "2.1" | ||
|
||
services: | ||
swag: | ||
image: linuxserver/swag | ||
container_name: swag | ||
cap_add: | ||
- NET_ADMIN | ||
environment: | ||
- PUID=1000 # see https://github.com/linuxserver/docker-swag#user--group-identifiers | ||
- PGID=1011 # see https://github.com/linuxserver/docker-swag#user--group-identifiers | ||
- TZ=Europe/Berlin # customize this | ||
- URL=example.com # customize this | ||
- SUBDOMAINS=liquity # customize this | ||
- VALIDATION=http | ||
- ONLY_SUBDOMAINS=true | ||
volumes: | ||
- ./config:/config | ||
ports: | ||
- 443:443 | ||
- 80:80 | ||
restart: unless-stopped | ||
|
||
watchtower: | ||
image: containrrr/watchtower | ||
container_name: watchtower | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
command: --interval 1000 --cleanup --label-enable | ||
restart: unless-stopped | ||
|
||
dev-frontend: | ||
image: liquity/dev-frontend:latest | ||
container_name: liquity-dev-frontend | ||
environment: | ||
- FRONTEND_TAG= # customize this | ||
- INFURA_API_KEY= # (optional) customize this | ||
restart: unless-stopped | ||
labels: | ||
com.centurylinklabs.watchtower.enable: "true" |