-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update compose file, .env.example, and PyMongo version
- Loading branch information
Showing
4 changed files
with
501 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
HOSTNAME="localhost" | ||
DB_CONNECTION_STR="mongodb://localhost:27017/" | ||
DB_NAME="intact" | ||
|
||
ADMIN_PASSWORD="password" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
version: '3.1' | ||
|
||
# TODO: I am test-deploying in a great hurry; obviously will sort out the environment etc. | ||
# To run a compose stack locally, just build the intact-backend image from the Dockerfile. | ||
|
||
services: | ||
|
||
intact-backend: | ||
# TODO | ||
# image: intact-backend | ||
image: hicsail/intact-backend:main | ||
ports: | ||
- "8000:80" | ||
- "1333:80" | ||
environment: | ||
# TODO | ||
HOSTNAME: "intact-frontend.sail.codes" | ||
DB_NAME: "intact" | ||
DB_CONNECTION_STR: "mongodb://root:example@mongo:27017/" | ||
HOSTNAME: ${HOSTNAME} | ||
DB_NAME: ${DB_NAME} | ||
DB_CONNECTION_STR: ${DB_CONNECTION_STR} | ||
|
||
mongo: | ||
image: mongo | ||
image: mongo:8 | ||
restart: always | ||
environment: | ||
# TODO | ||
MONGO_INITDB_ROOT_USERNAME: root | ||
MONGO_INITDB_ROOT_PASSWORD: example | ||
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME} | ||
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD} | ||
volumes: | ||
- intact-backend-mongo-data-staging:/data/db | ||
|
||
volumes: | ||
intact-backend-mongo-data-staging: | ||
external: true |
Oops, something went wrong.