Skip to content

Commit

Permalink
fix: remove network service and add required environment variables fo…
Browse files Browse the repository at this point in the history
  • Loading branch information
arteevraina authored and henilp105 committed Feb 4, 2024
1 parent 638c9f2 commit f9e6249
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions backend/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ services:
- 80:80
depends_on:
- backend
networks:
- my_network


backend:
build:
Expand All @@ -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:
Expand All @@ -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

0 comments on commit f9e6249

Please sign in to comment.