Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hi guys, I'm working on a small project for Uni and am using docker & docker-compose for the first time.
- My application is written in TypeScript (Node) and is using Postgres as DB.
- No matter how much I tried, my docker-compose is always failing to build correctly...
- I would really appreciate it if you could land me a hand here 🙏
- __This is my Dockerfile:__
- ```
- FROM node:8.3.0
- WORKDIR /usr/app
- COPY . .
- RUN node install
- EXPOSE 80:80
- CMD ["node", "start"]
- ```
- __npm scripts:__
- ```
- "scripts": {
- "postinstall": "tsc",
- "start": "node ./bin/Server.js"
- }
- ```
- How should I write down my `docker-compose.yml` to make it work?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement