Skip to content

Commit

Permalink
Update compose file, .env.example, and PyMongo version
Browse files Browse the repository at this point in the history
  • Loading branch information
vpsx committed Sep 20, 2024
1 parent c75e70c commit 26a70d7
Show file tree
Hide file tree
Showing 4 changed files with 501 additions and 460 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
HOSTNAME="localhost"
DB_CONNECTION_STR="mongodb://localhost:27017/"
DB_NAME="intact"

ADMIN_PASSWORD="password"
27 changes: 13 additions & 14 deletions compose.yml
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
Loading

0 comments on commit 26a70d7

Please sign in to comment.