-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Changes from 1 commit
bb51720
bb7e807
ea382e0
c19f5c6
fdc25d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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 | ||||||
|
||||||
```sh | ||||||
|
@@ -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())' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was needed There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
* 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. | ||||||
|
||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.