-
-
Notifications
You must be signed in to change notification settings - Fork 66
Docker Documentation #58
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
base: master
Are you sure you want to change the base?
Changes from 2 commits
8ed0333
6f7c9be
0d129b9
7ffa99e
7117b03
f1cd66e
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 |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # Docker | ||
|
|
||
| ## dev environment | ||
|
|
||
| This clones the master branch into a docker builder and runs a build before starting it. | ||
| To run it you need docker and docker-compose | ||
| `sudo docker compose up` or `sudo docker compose up -d` | ||
|
|
||
| ## prod environment with local file storage | ||
|
|
||
| Set the following environment variables in your environment (adapt POSTGRES_USER, POSTGRES_PASSWORD): | ||
|
|
||
| `export POSTGRES_USER=postgres` <br /> | ||
| `export POSTGRES_PASSWORD=postgres` <br /> | ||
| `export POSTGRES_DATABASE=fosscord` | ||
|
Puyodead1 marked this conversation as resolved.
Outdated
|
||
|
|
||
| This clones the master branch into a docker builder and runs a build before starting it. | ||
| To run it you need docker and docker-compose | ||
| `sudo docker-compose -f docker-compose.prod.yaml up` or `sudo docker-compose -f docker-compose.prod.yaml up -d` | ||
|
|
||
| At first start, you get an | ||
|
|
||
| ``` | ||
| db_1 | 2023-03-04 17:28:25.790 UTC [63] ERROR: relation "config" does not exist at character 31 | ||
| db_1 | 2023-03-04 17:28:25.790 UTC [63] STATEMENT: SELECT COUNT(1) AS "cnt" FROM "config" "ConfigEntity" | ||
| ``` | ||
|
Puyodead1 marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## prod environment with S3 file storage | ||
|
Member
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 section could probably just be merged with the above one instead. the content is basically the same, minus the env vars. if you go with an env vars table, just add these to it.
Author
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. Merged and insert into env variables |
||
|
|
||
| Set the following environment variables in your environment (adapt POSTGRES_USER, POSTGRES_PASSWORD, S3_BUCKET, S3_BUCKET_NAME,S3_BUCKET_REGION): | ||
|
|
||
| `export POSTGRES_USER=postgres` <br /> | ||
| `export POSTGRES_PASSWORD=postgres` <br /> | ||
| `export POSTGRES_DATABASE=fosscord` <br /> | ||
| `export S3_BUCKET=S3://...` <br /> | ||
| `export S3_BUCKET_NAME=test` <br /> | ||
| `export S3_BUCKET_REGION=eu-central-1` | ||
|
|
||
| This clones the master branch into a docker builder and runs a build before starting it. | ||
| To run it you need docker and docker-compose | ||
| `docker-compose -f docker-compose.prod.s3.yaml up` or `docker-compose -f docker-compose.prod.s3.yaml up -d` | ||
|
|
||
| At first start, you get an | ||
|
|
||
| ``` | ||
| db_1 | 2023-03-04 17:28:25.790 UTC [63] ERROR: relation "config" does not exist at character 31 | ||
| db_1 | 2023-03-04 17:28:25.790 UTC [63] STATEMENT: SELECT COUNT(1) AS "cnt" FROM "config" "ConfigEntity" | ||
| ``` | ||
Uh oh!
There was an error while loading. Please reload this page.