-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Browserless for capturing screenshots
- Loading branch information
1 parent
2743ca7
commit 35316e0
Showing
9 changed files
with
496 additions
and
180 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
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
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
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,21 @@ | ||
# Example Docker Compose override file for local development | ||
|
||
services: | ||
app: | ||
platform: linux/amd64 # Needed for Apple Silicon | ||
build: | ||
dockerfile: docker/app/Dockerfile | ||
init: true | ||
restart: unless-stopped | ||
environment: | ||
BROWSERLESS_ENDPOINT: ws://browserless:3000 | ||
SCREENSHOT_HOST: app | ||
depends_on: | ||
- browserless | ||
volumes: | ||
- .:/app | ||
|
||
browserless: | ||
platform: linux/arm64 # Needed for Apple Silicon | ||
ports: | ||
- 3000:3000 |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
# Example Docker Compose override file for production | ||
|
||
services: | ||
app: | ||
image: ghcr.io/misenhower/splatoon2.ink:main | ||
init: true | ||
restart: unless-stopped | ||
environment: | ||
BROWSERLESS_ENDPOINT: ws://browserless:3000 | ||
SCREENSHOT_HOST: app | ||
depends_on: | ||
- browserless | ||
labels: [ "com.centurylinklabs.watchtower.scope=splatoon3ink" ] | ||
|
||
browserless: | ||
labels: [ "com.centurylinklabs.watchtower.scope=splatoon3ink" ] | ||
|
||
watchtower: | ||
image: containrrr/watchtower | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
command: --interval 30 --scope splatoon3ink | ||
labels: [ "com.centurylinklabs.watchtower.scope=splatoon3ink" ] |
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 |
---|---|---|
@@ -1,18 +1,9 @@ | ||
version: "3.8" | ||
# See docker-compose.override.yml.* example files for dev/prod environments | ||
|
||
services: | ||
app: | ||
build: docker/app | ||
init: true | ||
browserless: | ||
image: ghcr.io/browserless/chromium | ||
restart: unless-stopped | ||
working_dir: /app | ||
volumes: | ||
- ./:/app | ||
command: npm run cron | ||
|
||
nginx: | ||
image: nginx | ||
restart: unless-stopped | ||
volumes: | ||
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro | ||
- ./dist:/usr/share/nginx/html:ro | ||
environment: | ||
CONCURRENT: ${BROWSERLESS_CONCURRENT:-1} | ||
QUEUED: ${BROWSERLESS_QUEUED:-100} |
Oops, something went wrong.