You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
837 B
40 lines
837 B
|
|
version: "3.9"
|
|
services:
|
|
db:
|
|
image: postgres:17
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_PASSWORD: password
|
|
POSTGRES_USER: praktikum
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
ports:
|
|
- '35432:35432'
|
|
healthcheck:
|
|
test: [ "CMD", "pg_isready", "-q" ]
|
|
timeout: 45s
|
|
interval: 10s
|
|
retries: 10
|
|
command: -p 35432
|
|
networks:
|
|
- praktikum-network
|
|
web:
|
|
build: .
|
|
restart: unless-stopped
|
|
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -b 0.0.0.0"
|
|
volumes:
|
|
- .:/app
|
|
ports:
|
|
- "3000:3000"
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
DATABASE_URL: postgres://postgres:password@db:5432/postgres
|
|
networks:
|
|
- praktikum-network
|
|
volumes:
|
|
pgdata:
|
|
networks:
|
|
praktikum-network:
|
|
driver: bridge
|