1version: '2'
2services:
3 web:
4 build: .
5 command: npm run dev
6 volumes:
7 - .:/usr/app/
8 - /usr/app/node_modules
9 ports:
10 - "3000:3000"
11 depends_on:
12 - postgres
13 environment:
14 DATABASE_URL: postgres://todoapp@postgres/todos
15 postgres:
16 image: postgres:9.6.2-alpine
17 environment:
18 POSTGRES_USER: todoapp
19 POSTGRES_DB: todos
1version: '3'
2
3services:
4 backend:
5 env_file:
6 "./backend/backend.env"
7 build:
8 context: ./backend
9 dockerfile: ./Dockerfile
10 image: "dmurphy1217/twitter-sentiment-backend"
11 ports:
12 - "5000:5000"
13 frontend:
14 build:
15 context: ./client
16 dockerfile: ./Dockerfile
17 image: "dmurphy1217/twitter-sentiment-frontend"
18 ports:
19 - "3000:3000"
20 links:
21 - "backend:be"