Hopefully the final fixes based on fresh installs with both Docker install methods

This commit is contained in:
Jyri-Petteri Paloposki 2020-07-20 00:58:45 +03:00
parent bec0884bac
commit 4dd52e591d
5 changed files with 13 additions and 6 deletions

View file

@ -55,12 +55,17 @@ Tracks container. In future there should be an official image in Docker Hub. You
postgres=# CREATE USER tracks WITH ENCRYPTED PASSWORD 'password-goes-here';
postgres=# CREATE DATABASE tracks OWNER=tracks;
```
4. Start the Tracks container:
4. Install the schema
```
$ docker run --link mariadb:db --rm -t tracks bin/rake db:reset
$ docker run --link postgres:db --rm -t tracks bin/rake db:reset
```
5. Start the Tracks server:
```
$ docker run -p 3000:3000 --name tracks --link mariadb:db -t tracks
$ docker run -p 3000:3000 --name tracks --link postgres:db -t tracks
```
5. You should now be able to access Tracks in http://localhost:3000
6. You should now be able to access Tracks in http://localhost:3000
## Environmental variables in the Docker image