Docker Help

Hi, I have the following docker compose that I need to create in Railway. I know that docker compose is not supported, so, how can I create it - split - the following file? I am new to Railway: version: '3.3' services: mongodb: container_name: mongodb image: mongo restart: always ports: - 27017:27017 environment: - MONGO_INITDB_ROOT_USERNAME=root - MONGO_INITDB_ROOT_PASSWORD=root - PUID=1000 - PGID=1000 volumes: - data1:/data/db - data2:/data/configdb expose: - 27017 mongo-express: image: mongo-express environment: ME_CONFIG_BASICAUTH_USERNAME: root ME_CONFIG_BASICAUTH_PASSWORD: root ME_CONFIG_MONGODB_SERVER: mongodb ME_CONFIG_MONGODB_ADMINUSERNAME: root ME_CONFIG_MONGODB_ADMINPASSWORD: root ports: - 8081:8081 links: - mongodb volumes: data1: data2: networks: evolution-net: name: evolution-net driver: bridge
6 Replies
Brody
Brody5mo ago
new empty project two new empty services set the needed environment variables set any applicable tcp proxy or https domains attach any volumes attach the images those are high level instructions, would you want me to create a template for this so you can inspect it and learn from how it is setup?
Elber Domingos
Elber Domingos5mo ago
Hey Brody. How much would you charge to do it?
Brody
Brody5mo ago
I wouldn't charge anything for that
Elber Domingos
Elber Domingos5mo ago
If you can create a template or show me how to do it, I would really appreciate it
Brody
Brody5mo ago
will do, I'll let you know when I have that done hey @elberrd here is the template - https://railway.app/template/hXOZft you can inspect the template here - https://railway.app/button?code=hXOZft here are some docs and links that where useful during the creation of this template https://hub.docker.com/_/mongo https://hub.docker.com/_/mongo-express https://docs.railway.app/guides/variables#referencing-another-services-variable https://docs.railway.app/guides/create#template-variable-functions https://docs.railway.app/reference/variables#railway-provided-variables feel free to ask me all the questions about the template
Elber Domingos
Elber Domingos5mo ago
You are the man. I will have a look and study it. Thank you so much