75 lines
1.6 KiB
YAML
75 lines
1.6 KiB
YAML
services:
|
|
web:
|
|
build:
|
|
context: ./baclight/
|
|
dockerfile: development.Dockerfile
|
|
container_name: baclight
|
|
volumes:
|
|
- ./baclight/:/usr/src/app
|
|
- bundle:/usr/local/bundle
|
|
ports:
|
|
- "3002:3002"
|
|
environment:
|
|
- HISTFILE=/usr/src/app/log/.bash_history
|
|
- RAILS_ENV=development
|
|
# - RAILS_ENV=production
|
|
- RAILS_SERVE_STATIC_FILES=true
|
|
- TAILWIND_POLLING=true
|
|
- PUID=1000
|
|
- PGID=100
|
|
- JASPER_SERVER_HOST=jasper
|
|
tty: true
|
|
stdin_open: true
|
|
networks:
|
|
- britton_network
|
|
|
|
cron:
|
|
build:
|
|
context: ./baclight/
|
|
dockerfile: development.Dockerfile
|
|
command: ./bin/cron-entrypoint
|
|
volumes:
|
|
- ./baclight/:/usr/src/app
|
|
- bundle:/usr/local/bundle
|
|
environment:
|
|
- RAILS_ENV=development
|
|
- PUID=1000
|
|
- PGID=100
|
|
depends_on:
|
|
- web
|
|
jobs:
|
|
build:
|
|
context: ./baclight/
|
|
dockerfile: development.Dockerfile
|
|
command: ./bin/jobs-entrypoint
|
|
volumes:
|
|
- ./baclight/:/usr/src/app
|
|
- bundle:/usr/local/bundle
|
|
environment:
|
|
- RAILS_ENV=development
|
|
- PUID=1000
|
|
- PGID=100
|
|
# deploy:
|
|
# replicas: 2
|
|
# restart_policy:
|
|
# condition: on-failure
|
|
depends_on:
|
|
- web
|
|
jasper:
|
|
build: ./jasper_reports/
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
# - ./jasper_reports/build:/usr/src/app/build
|
|
- ./jasper_reports/compiled_war:/app/compiled_war
|
|
- ./jasper_reports/web/reports:/usr/local/tomcat/webapps/app/web/reports
|
|
networks:
|
|
- britton_network
|
|
# restart: always
|
|
|
|
networks:
|
|
britton_network:
|
|
external: true
|
|
|
|
volumes:
|
|
bundle: |