62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
# This is available in $COMPOSE_PROJECT_NAME
|
|
name: a11yist
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
|
|
services:
|
|
app: &app
|
|
build:
|
|
context: .
|
|
restart: "unless-stopped"
|
|
command: ["/bin/sh", "-c", "/app/bin/dev"]
|
|
volumes:
|
|
- ./:/app:cached
|
|
- ${PWD}:${PWD}
|
|
- ${SSH_AUTH_SOCK}:/ssh-agent
|
|
- .devenv/helix:/home/app/.config/helix
|
|
- .devenv/fish:/home/app/.config/fish
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
RAILS_ENV: development
|
|
LOG_LEVEL: debug
|
|
TRUSTED_IP: 172.16.0.0/12,192.168.0.0/16,10.0.0.0/24
|
|
SSH_AUTH_SOCK: /ssh-agent
|
|
RAILS_SERVE_STATIC_FILES: 1
|
|
APP_HOST: ${COMPOSE_PROJECT_NAME}.localhost
|
|
HISTFILE: /app/tmp/.bash_history
|
|
PSQL_HISTORY: /app/tmp/.psql_history
|
|
IRBRC: /app/.irbrc
|
|
SELENIUM_REMOTE_URL: http://chrome:4444/wd/hub
|
|
labels:
|
|
- traefik.http.routers.app-${COMPOSE_PROJECT_NAME}.entrypoints=http
|
|
- traefik.http.routers.app-${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_PROJECT_NAME}.localhost`)
|
|
- traefik.http.services.app-${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=3000
|
|
- traefik.docker.network=traefik
|
|
networks:
|
|
- traefik
|
|
- default
|
|
|
|
edit:
|
|
<<: *app
|
|
restart: "no"
|
|
labels: []
|
|
depends_on: []
|
|
command: ["hx", "."]
|
|
entrypoint: null
|
|
networks:
|
|
- default
|
|
|
|
chrome:
|
|
image: selenium/standalone-chrome
|
|
shm_size: 2g
|
|
labels:
|
|
- traefik.http.routers.chrome-${COMPOSE_PROJECT_NAME}.entrypoints=http
|
|
- traefik.http.routers.chrome-${COMPOSE_PROJECT_NAME}.rule=Host(`chrome.${COMPOSE_PROJECT_NAME}.localhost`)
|
|
- traefik.http.services.chrome-${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=4444
|
|
- traefik.docker.network=traefik
|
|
networks:
|
|
- traefik
|
|
- default
|