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: