Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: running using docker modified #7216

Merged
merged 5 commits into from
Sep 11, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions docs/installation/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
git clone https://github.com/fossasia/open-event-server.git && cd open-event-server
```

* Then set the required `SERVER_NAME` environment variable. `SERVER_NAME` should the same as the domain on which the server is running and it should not include 'http', 'https',
'www' or the trailing slash (/) in the url. Examples - `domain.com`, `sub.domain.com`, `sub.domain.com:5000` etc

```bash
export SERVER_NAME=localhost;
```

* craete env file using the following command
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* craete env file using the following command
* create env file using the following command


```sh
Expand All @@ -28,30 +21,10 @@ export SERVER_NAME=localhost;
Add SECRET_KEY in the env file to run properly in production mode . To generate a good secret value run python -c 'import secrets;print(secrets.token_hex())'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was needed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My apologies added them again , should I remove build image step because docker-compose up -d automatically builds the images and starts the server

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I need to do change anything further




* In the same terminal window, run `docker-compose build` to build open-event-server's docker image. This process can take some time.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed


* After build is done, run `docker-compose up` to start the server.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* After build is done, run `docker-compose up` to start the server.
* After build is done, run `docker-compose up -d` to start the server.


* If you are doing it for the first time, you will have to create the database (and then tables).
So keeping `docker-compose up` active in one terminal window, open another terminal window **in the same directory**. In there type the following command.

```bash
docker-compose run postgres psql -h postgres -p 5432 -U open_event_user --password open_event
```

* Write 'opev_pass' as password and ENTER. When inside psql shell, write the following command -

```sql
create database opev;
# CREATE DATABASE
```

* Then exit the shell by typing `\q` and ENTER.

* Now the database is created, so let's create the tables. Open the application's shell by `docker-compose run web sh`.


* That's it. Go to `localhost:8080` on the web browser and Open Event Orga Server will be live.


Expand Down