diff options
author | terminaldweller <thabogre@gmail.com> | 2022-03-25 14:36:57 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-03-25 14:36:57 +0000 |
commit | 607b16ff74512cf70bb49efa553809bf9f5c8a84 (patch) | |
tree | 23a3bf0c5d84dfa36a447a44bf44c27a240b8fdb /docker-compose-test.yaml | |
parent | rss, WIP (diff) | |
download | blog-607b16ff74512cf70bb49efa553809bf9f5c8a84.tar.gz blog-607b16ff74512cf70bb49efa553809bf9f5c8a84.zip |
wip
Diffstat (limited to 'docker-compose-test.yaml')
-rw-r--r-- | docker-compose-test.yaml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docker-compose-test.yaml b/docker-compose-test.yaml index 73981ef..243b282 100644 --- a/docker-compose-test.yaml +++ b/docker-compose-test.yaml @@ -6,6 +6,7 @@ services: context: ./ networks: - webnet + - dbnet ports: - "19009:9000" cap_drop: @@ -13,5 +14,32 @@ services: environment: - SERVER_DEPLOYMENT_TYPE=test - SERVER_LISTEN_PORT=9000 + depends_on: + - mongo + mongo: + image: mongo:5.0 + networks: + - dbnet + restart: on-failure + ports: + - "27117:27017" + - "127.0.0.1:27118:27018" + - "127.0.0.1:27119:27019" + volumes: + - db-data:/data/db + env: + - MONGO_INITDB_ROOT_USERNAME_FILE=/run/secrets/mongo_user + - MONGO_INITDB_ROOT_PASSWORD_FILE=/run/secrets/mongo_pass + secrets: + - mongo_user + - mongo_pass networks: webnet: + dbnet: +volumes: + db-data: +secrets: + mongo_user: + file: ./mongo_user + mongo_pass: + file: ./mongo_pass |