File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 11# Geodata
22
3- Geodata web portal developed from Geoblacklight 4.1.0
3+ Geodata web portal developed from Geoblacklight 4.4.2
44[ Geodata@UCB] ( https://geodata.lib.berkeley.edu/ )
55
66## Docker
77
88
99``` sh
1010# Build container images
11- docker-compose build --pull --force-rm
11+ docker compose build --pull
12+ or
13+ docker compose build --pull --no-cache
1214
1315# Start the stack in the background
14- docker- compose up --d
16+ docker compose up --d
1517
1618# Run setup tasks (create databases, compile assets, etc.)
17- docker- compose run --rm --entrypoint=setup app
19+ docker compose run --rm --entrypoint=setup app
1820```
1921
2022### Accessing Services
@@ -42,26 +44,26 @@ If you're curious, the code that does this is in `config/application.rb`.
4244View logs:
4345
4446``` sh
45- docker- compose logs -f # tail all logs
46- docker- compose logs -f app # tail just the "app" service's logs (etc.)
47+ docker compose logs -f # tail all logs
48+ docker compose logs -f app # tail just the "app" service's logs (etc.)
4749```
4850
4951Shell into a container:
5052
5153``` sh
52- docker- compose run --rm --entrypoint=ash app
54+ docker compose exec app bash
5355```
5456
5557Open a Rails console:
5658
5759``` sh
58- docker- compose run --rm app console
60+ docker compose exec app rails console
5961```
6062
6163Stop services and clean up volumes:
6264
6365``` sh
64- docker- compose down -v
66+ docker compose down -v
6567```
6668
6769
You can’t perform that action at this time.
0 commit comments