chasing deployment problems
This commit is contained in:
parent
3817fa76ec
commit
662bcd00d3
5 changed files with 39 additions and 22 deletions
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
version: '3'
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_USER: debshots
|
||||
POSTGRES_PASSWORD: debshots
|
||||
POSTGRES_DB: debshots
|
||||
web:
|
||||
build: .
|
||||
depends_on:
|
||||
- postgres
|
||||
#command: bash -c "rm -f tmp/pids/server.pid && rails server -b 0.0.0.0"
|
||||
volumes:
|
||||
- .:/opt/app
|
||||
ports:
|
||||
- "3333:3000"
|
||||
environment:
|
||||
DATABASE_URL: postgres://debshots:debshots@postgres:5432/debshots
|
||||
volumes:
|
||||
db_data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue