todo-baggins/docker-compose-dev.yaml
Matouš Volf 19be0884d0
Some checks failed
actionlint check / actionlint check (pull_request) Successful in 8s
checkov check / checkov check (pull_request) Failing after 1m15s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 7s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 3s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 9s
GitLeaks check / GitLeaks check (pull_request) Successful in 13s
hadolint check / hadolint check (pull_request) Successful in 12s
htmlhint check / htmlhint check (pull_request) Successful in 22s
markdownlint check / markdownlint check (pull_request) Successful in 22s
Prettier check / Prettier check (pull_request) Successful in 23s
Rust check / Rust check (pull_request) Successful in 15m59s
ShellCheck check / ShellCheck check (pull_request) Failing after 18s
Stylelint check / Stylelint check (pull_request) Successful in 11s
yamllint check / yamllint check (pull_request) Successful in 15s
refactor: build development Tailwind CSS in a separate Docker service
2025-01-03 10:41:36 +01:00

44 lines
1.1 KiB
YAML

---
services:
app:
build:
dockerfile: docker/dev/app/Dockerfile
volumes:
- ./.env.dev:/srv/app/.env
- ./assets:/srv/app/assets
- ./src:/srv/app/src
- ./migrations:/srv/app/migrations
- ./Cargo.lock:/srv/app/Cargo.lock
- ./Cargo.toml:/srv/app/Cargo.toml
- ./diesel.toml:/srv/app/diesel.toml
- ./Dioxus.toml:/srv/app/Dioxus.toml
restart: always
ports: ["8000:8000"]
depends_on: ["db", "style-builder"]
style-builder:
build:
dockerfile: docker/dev/style-builder/Dockerfile
volumes:
- ./assets:/srv/app/assets
- ./src:/srv/app/src
- ./package.json:/srv/app/package.json
- ./package-lock.json:/srv/app/package-lock.json
# To prevent the container from exiting.
# See https://github.com/rails/rails/issues/44048.
tty: true
restart: always
db:
image: postgres:16.4-bookworm
volumes: ["db_data:/var/lib/postgresql/data"]
ports: ["5432:5432"]
environment:
POSTGRES_DB: todo_baggins
POSTGRES_USER: app
POSTGRES_PASSWORD: app
restart: always
volumes:
db_data: