Update docker
This commit is contained in:
parent
b756df38a9
commit
4c31dbbed0
7 changed files with 441 additions and 230 deletions
59
compose.yml
Normal file
59
compose.yml
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# This is available in $COMPOSE_PROJECT_NAME
|
||||
name: a11yist
|
||||
|
||||
networks:
|
||||
ingress:
|
||||
external: true
|
||||
|
||||
services:
|
||||
app: &app
|
||||
build:
|
||||
context: .
|
||||
target: development
|
||||
args:
|
||||
NAME: ${USER}
|
||||
UID: 1000
|
||||
GID: 1000
|
||||
INSTALL_DIR: ${PWD}
|
||||
volumes:
|
||||
- ${SSH_AUTH_SOCK}:/ssh-agent
|
||||
- ${PWD}:${PWD}
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
APP_HOST: ${COMPOSE_PROJECT_NAME}.localhost
|
||||
HISTFILE: /app/tmp/.bash_history
|
||||
IRBRC: /app/.irbrc
|
||||
LOG_LEVEL: debug
|
||||
PSQL_HISTORY: /app/tmp/.psql_history
|
||||
RAILS_ENV: development
|
||||
RAILS_SERVE_STATIC_FILES: 1
|
||||
SELENIUM_REMOTE_URL: http://chrome:4444/wd/hub
|
||||
SSH_AUTH_SOCK: /ssh-agent
|
||||
TRUSTED_IP: 172.16.0.0/12,192.168.0.0/16,10.0.0.0/24
|
||||
labels:
|
||||
caddy: "http://${COMPOSE_PROJECT_NAME}.localhost"
|
||||
caddy.reverse_proxy: "{{upstreams 3000}}"
|
||||
networks:
|
||||
- ingress
|
||||
- default
|
||||
|
||||
edit:
|
||||
<<: *app
|
||||
restart: "no"
|
||||
labels: []
|
||||
depends_on: []
|
||||
command: [ "hx", "." ]
|
||||
entrypoint: null
|
||||
networks:
|
||||
- default
|
||||
|
||||
chrome:
|
||||
image: selenium/standalone-chrome
|
||||
shm_size: 2g
|
||||
labels:
|
||||
caddy: "http://browser.${COMPOSE_PROJECT_NAME}.localhost"
|
||||
caddy.reverse_proxy: "{{upstreams 7900}}"
|
||||
networks:
|
||||
- ingress
|
||||
- default
|
||||
Loading…
Add table
Add a link
Reference in a new issue