Files
ubicloud/demo/docker-compose.yml
Enes Cakir 03f299ee41 Remove version from demo docker-compose template
It shows the following warning:

    WARN[0000] ./ubicloud/demo/docker-compose.yml: the attribute
    `version` is obsolete, it will be ignored, please remove it to avoid
    potential confusion
2025-01-17 18:05:04 +03:00

39 lines
846 B
YAML

services:
postgres:
image: postgres:15.4
container_name: ubicloud-postgres
env_file: .env
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql/data
- ./init_db.sh:/docker-entrypoint-initdb.d/init_db.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
db-migrator:
image: ubicloud/ubicloud:latest
container_name: ubicloud-db-migrator
depends_on:
postgres:
condition: service_healthy
env_file: .env
command: bundle exec rake dev_up
app:
image: ubicloud/ubicloud:latest
container_name: ubicloud-app
depends_on:
db-migrator:
condition: service_completed_successfully
env_file: .env
ports:
- 3000:3000
command: foreman start
volumes:
postgres: