Not able to build using docker-compose-yml getting unknown instruction:
alanbosco
TRIALOP

a year ago

Getting this error

docker-compose.yml:1

1 | >>> version: '3.8'

2 |

3 | services:

ERROR: failed to run Build function: dockerfile parse error on line 1: unknown instruction: version:

this is the docker-compose.yml file

version: '3.8'

services:
backend:
build: ./backend
ports:
- "3000:3000"
environment:
- NODE_ENV=production
restart: unless-stopped

frontend:
build: ./frontend
ports:
- "80:80"
dependson: - backend environment: - VITEBACKENDAPIURL=http://localhost:3000
restart: unless-stopped

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

brody
EMPLOYEE

a year ago

Hello,

We do not support deploying from docker-compose, instead, you would want to read this guide -

https://docs.railway.com/tutorials/deploying-a-monorepo


Loading...