diff options
author | terminaldweller <thabogre@gmail.com> | 2022-07-05 15:49:16 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-07-05 15:49:16 +0000 |
commit | 4eaa437c0a285c617e30a533d1ef369eaa8644a6 (patch) | |
tree | dfc5d498039284e4ea30880b08197e5f24b3a2c6 /docker-compose-test.yaml | |
parent | was using node image for self-signed certificates (diff) | |
download | blog-4eaa437c0a285c617e30a533d1ef369eaa8644a6.tar.gz blog-4eaa437c0a285c617e30a533d1ef369eaa8644a6.zip |
WIP, adding rss to the blog
Diffstat (limited to '')
-rw-r--r-- | docker-compose-test.yaml | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/docker-compose-test.yaml b/docker-compose-test.yaml index 243b282..fceb9b9 100644 --- a/docker-compose-test.yaml +++ b/docker-compose-test.yaml @@ -1,11 +1,11 @@ version: "3.7" services: - web: - image: web + blog: + image: blog build: - context: ./ + context: . networks: - - webnet + - blognet - dbnet ports: - "19009:9000" @@ -16,30 +16,33 @@ services: - SERVER_LISTEN_PORT=9000 depends_on: - mongo + secrets: + - mongo_user + - mongo_pass mongo: image: mongo:5.0 networks: - dbnet restart: on-failure ports: - - "27117:27017" + - "127.0.0.1:27117:27017" - "127.0.0.1:27118:27018" - "127.0.0.1:27119:27019" volumes: - - db-data:/data/db - env: + - blog-data:/data/db + environment: - 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: + blognet: dbnet: volumes: - db-data: + blog-data: secrets: mongo_user: - file: ./mongo_user + file: ./mongo_secrets/mongo_user mongo_pass: - file: ./mongo_pass + file: ./mongo_secrets/mongo_pass |