Prod build process
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
volumes:
|
||||
- .:/rails
|
||||
ports:
|
||||
- "3002:3002"
|
||||
environment:
|
||||
- HISTFILE=/usr/src/app/log/.bash_history
|
||||
- RAILS_ENV=production
|
||||
- PUID=1000
|
||||
- PGID=100
|
||||
tty: true
|
||||
stdin_open: true
|
||||
# healthcheck:
|
||||
# test: ["CMD", "curl", "-f", "http://localhost:3002/up"]
|
||||
# interval: 5s
|
||||
# timeout: 3s
|
||||
# retries: 10
|
||||
# start_period: 10s
|
||||
# depends_on:
|
||||
# db:
|
||||
# condition: service_healthy
|
||||
# db:
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: Dockerfile.db
|
||||
# volumes:
|
||||
# - ./mssql-data:/var/opt/mssql
|
||||
# ports:
|
||||
# - "1434:1434"
|
||||
# healthcheck:
|
||||
# test: ["CMD", "/opt/mssql-tools/bin/sqlcmd", "-Usa", "-PBr1tt0nPassw0rd", "-Q", "select 1"]
|
||||
# interval: 10s
|
||||
# timeout: 3s
|
||||
# retries: 10
|
||||
# start_period: 10s
|
||||
# cron:
|
||||
# build:
|
||||
# context: ./
|
||||
# dockerfile: development3.Dockerfile
|
||||
# command: ./bin/cron-entrypoint
|
||||
# volumes:
|
||||
# - .:/usr/src/app
|
||||
# - bundle:/usr/local/bundle
|
||||
# environment:
|
||||
# - RAILS_ENV=development
|
||||
# - PUID=1000
|
||||
# - PGID=100
|
||||
# depends_on:
|
||||
# web:
|
||||
# condition: service_healthy
|
||||
# - db
|
||||
volumes:
|
||||
# redis_data:
|
||||
bundle:
|
||||
Reference in New Issue
Block a user