You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-19Lines changed: 14 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,39 +1,35 @@
1
1
# Hackorum
2
2
3
-
Rails 8 app backed by Postgres. Use the Docker-based development setup below for a quick start; production deploy lives under `deploy/` with its own `README`.
3
+
Rails 8 app backed by Postgres. Use the containerised development setup below for a quick start; production deploy lives under `deploy/` with its own `README`.
4
4
5
5
Live application is available at https://hackorum.dev
6
6
7
-
## Development (Docker)
7
+
## Development
8
+
9
+
Both Docker and Podman (rootless) are supported. The Makefile auto-detects which runtime is available (preferring Podman). Override with `ENGINE=docker` or `ENGINE=podman`.
10
+
8
11
1) Copy the sample env and adjust as needed:
9
12
```bash
10
13
cp .env.development.example .env.development
11
14
```
12
15
2) Build and start the stack (web + Postgres):
13
16
```bash
14
-
docker compose -f docker-compose.dev.yml up --build
17
+
make dev
15
18
```
16
19
* App: http://localhost:3000
17
20
* Postgres: localhost:15432 (user/password: hackorum/hackorum by default)
18
21
* Emails sent by the application use `letter_opener`, will be opened by the browser automatically
19
-
* If you run into a Postgres data-dir warning, clear the old volume: `docker volume rm hackorum_db-data`
22
+
* If you run into a Postgres data-dir warning, clear the old volume: `docker volume rm hackorum_db-data` (or `podman volume rm hackorum_db-data`)
20
23
21
24
Useful commands:
22
-
* Shell: `docker compose -f docker-compose.dev.yml exec web bash`
0 commit comments