From 34d8d057b96f8b65c66c14c2abfdffd5511ab797 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Fri, 5 Apr 2024 22:03:44 +0200 Subject: [PATCH] f --- docker-compose-prod.yml | 57 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 docker-compose-prod.yml diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml new file mode 100644 index 0000000..a2c0ffe --- /dev/null +++ b/docker-compose-prod.yml @@ -0,0 +1,57 @@ +services: + # application service + app: + image: scx1332/deposit-payment-example + command: tail -F anything + environment: + - YAGNA_APPKEY=66667777888 + - YAGNA_API_URL=http://yagna:7465 + - JWT_SECRET=dup]a + - JWT_TOKEN_EXPIRATION=1d + - JWT_REFRESH_TOKEN_EXPIRATION=7d + - JWT_ISSUER=golem.network + - MONGO_URI=mongodb://${MONGO_ROOT_USER}:${MONGO_ROOT_PASSWORD}@mongo:27017/ + - HOST=0.0.0.0 + - PORT=5174 + - DB_NAME=depositDB + - DEPOSIT_CONTRACT_ADDRESS=0xb9919c8D8D384d93C195503064A3b303Ea8Fdbaa + ports: + - "3000:3000" + - "5174:5174" + # yagna service + yagna: + build: + context: ./yagna + dockerfile: Dockerfile + args: + - YAGNA_VERSION=pre-rel-v0.15.0-deposits-beta1 + command: yagna service run + environment: + - YAGNA_AUTOCONF_APPKEY=66667777888 + - YAGNA_AUTOCONF_ID_SECRET=0000000000000000000000000000000000000000000000000000000222222222 + - YAGNA_API_URL=http://0.0.0.0:7465 + - SUBNET=change_me + - YA_NET_BIND_URL=udp://0.0.0.0:0 + # mongo service + mongo: + image: mongo + environment: + - MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USER} + - MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD} + - MONGO_INITDB_DATABASE=project + # mongo express service + mongo-express: + image: mongo-express + environment: + - ME_CONFIG_MONGODB_SERVER=mongo + - ME_CONFIG_MONGODB_PORT=27017 + - ME_CONFIG_MONGODB_ENABLE_ADMIN=false + - ME_CONFIG_MONGODB_AUTH_DATABASE=admin + - ME_CONFIG_MONGODB_AUTH_USERNAME=${MONGO_ROOT_USER} + - ME_CONFIG_MONGODB_AUTH_PASSWORD=${MONGO_ROOT_PASSWORD} + - ME_CONFIG_BASICAUTH_USERNAME=${MONGOEXPRESS_LOGIN} + - ME_CONFIG_BASICAUTH_PASSWORD=${MONGOEXPRESS_PASSWORD} + depends_on: + - mongo + ports: + - "8888:8081" \ No newline at end of file