Init dump
This commit is contained in:
+18
-14
@@ -2,41 +2,45 @@ services:
|
||||
web:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: development.Dockerfile
|
||||
command: bash -c "rm -f tmp/pids/server.pid && bin/rails s -p 3000 -b '0.0.0.0'"
|
||||
dockerfile: development3.Dockerfile
|
||||
command: bash -c "rm -f tmp/pids/server.pid && bin/dev"
|
||||
volumes:
|
||||
- .:/usr/src/app
|
||||
- bundle:/usr/local/bundle
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "3002:3002"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- HISTFILE=/usr/src/app/log/.bash_history
|
||||
- RAILS_ENV=development
|
||||
- TAILWIND_POLLING=true
|
||||
tty: true
|
||||
stdin_open: true
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_started
|
||||
db:
|
||||
image: postgres:17
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=changeme
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.db
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
- ./mssql-data:/var/opt/mssql
|
||||
ports:
|
||||
- "1434:1434"
|
||||
healthcheck:
|
||||
test: pg_isready -U postgres
|
||||
interval: 2s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
test: ["CMD", "/opt/mssql-tools/bin/sqlcmd", "-Usa", "-PBr1tt0nPassw0rd", "-Q", "select 1"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
redis:
|
||||
image: redis
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
|
||||
volumes:
|
||||
pg_data:
|
||||
redis_data:
|
||||
bundle:
|
||||
|
||||
Reference in New Issue
Block a user