Skip to content

Commit efe77bc

Browse files
committed
added simpler docker commands, added init-devusers.php info
1 parent f1905ac commit efe77bc

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,34 @@ For the user management, no framework is used to keep the codebase lean.
1010
Start the docker containers:
1111

1212
```sh
13-
docker-compose up
13+
docker compose up
1414
```
1515

1616
This will start up three containers: the solid server, pubsub server and a mailpit server. If you have an actual SMTP server running, feel free to remove the mailpit container.
1717
The persisted data will be stored in the data/ directory. This contains the keys, pods, db and mailpit data.
1818

19-
Run the following commands to set up the container (replace 'solid' below with the name of your container):
20-
Note: Update the values in the config.php file where needed befure running the init script.
19+
Run the following commands to set up the container:
20+
Note: Update the values in the config.php file where needed before running the init script.
2121

2222
```sh
23-
docker exec -w /opt/solid/ solid cp config.php.example config.php
24-
docker exec -u www-data -i -w /opt/solid/ solid php init.php
25-
docker exec -w /opt/solid/ solid chown -R www-data:www-data keys pods profiles db
23+
docker compose exec -w /opt/solid/ solid cp config.php.example config.php
24+
docker compose exec -w /opt/solid/ solid chown -R www-data:www-data keys pods profiles db
25+
docker compose exec -u www-data -i -w /opt/solid/ solid php init.php
26+
```
27+
28+
If you need dev user accounts bob and alice, also run this:
29+
30+
```sh
31+
docker compose exec -u www-data -i -w /opt/solid/ solid php init-devusers.php
32+
docker compose exec -w /opt/solid/ solid chown -R www-data:www-data keys pods profiles db # again
2633
```
2734

2835
Now add the following host to your `/etc/hosts` file:
2936
```
3037
127.0.0.1 solid.local
3138
```
3239

33-
And browser to `https://solid.local/`. After you register a new account, you'll get an identity and storage hostname, add these to `/etc/hosts` as well, e.g:
40+
And browse to `https://solid.local/`. After you register a new account, you'll get an identity and storage hostname, add these to `/etc/hosts` as well, e.g:
3441
```
3542
127.0.0.1 id-d1f0e8c54e755cb45b61ee8e9dad00fe.solid.local storage-d1f0e8c54e755cb45b61ee8e9dad00fe.solid.local
3643
```

0 commit comments

Comments
 (0)