forked from fortran-lang/registry
-
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.
fix: remove network service and add required environment variables fo…
- Loading branch information
1 parent
638c9f2
commit f9e6249
Showing
1 changed file
with
12 additions
and
20 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 |
---|---|---|
|
@@ -10,9 +10,6 @@ services: | |
- 80:80 | ||
depends_on: | ||
- backend | ||
networks: | ||
- my_network | ||
|
||
|
||
backend: | ||
build: | ||
|
@@ -22,21 +19,17 @@ services: | |
# flask requires SIGINT to stop gracefully | ||
# (default stop signal from Compose is SIGTERM) | ||
stop_signal: SIGINT | ||
environment: # these are the test environment variables. | ||
environment: # these are the test environment variables. | ||
- FLASK_SERVER_PORT=9091 | ||
- MONGO_DB_NAME=registry | ||
- MONGO_URI=mongodb://mongo:27017/fpmregistry | ||
- MONGO_URI=mongodb://mongo:27017/ | ||
- SALT=MYSALT | ||
- MONGO_DB_NAME=fpmregistry | ||
- SUDO_PASSWORD=fortran | ||
- MONGO_USER_NAME=fortran | ||
- MONGO_PASSWORD=fortran | ||
- HOST=localhost:3000 | ||
# - [email protected] # set to registry email | ||
# - RESET_PASSWORD=reset | ||
networks: | ||
- my_network | ||
|
||
- [email protected] # set to registry email | ||
- RESET_PASSWORD=reset | ||
volumes: | ||
- .:/src | ||
depends_on: | ||
|
@@ -50,14 +43,13 @@ services: | |
volumes: | ||
- .:/src | ||
ports: | ||
- "5000:5000" | ||
networks: | ||
- my_network | ||
- "5001:5001" | ||
environment: # these are the test environment variables. | ||
- MONGO_URI=mongodb://mongo:27017/ | ||
- SALT=MYSALT | ||
- MONGO_DB_NAME=fpmregistry | ||
- MONGO_USER_NAME=fortran | ||
- MONGO_PASSWORD=fortran | ||
|
||
mongo: | ||
image: mongo | ||
|
||
|
||
networks: | ||
my_network: | ||
driver: bridge | ||
image: mongo |