-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.development.yaml
62 lines (57 loc) · 1.07 KB
/
docker-compose.development.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: "3.1"
services:
db:
image: mongo
ports:
- 27018:27017
restart: always
networks:
- shorturl-db
api:
build: ./api
image: shorturl/api
command: ["npm", "run", "watch:dev"]
volumes:
- ./api:/home/node/app
ports:
- 3000:3000
environment:
NODE_ENV: development
MONGODB_URI_LOCAL: mongodb://db:27017/shorturl_dev
restart: always
depends_on:
- db
networks:
- shorturl
- shorturl-db
webapp:
build:
context: ./webapp/
dockerfile: Dockerfile.development
image: shorturl/webapp
volumes:
- ./webapp:/app
ports:
- 8080:8080
depends_on:
- api
environment:
NODE_ENV: development
VUE_APP_API_URL: http://localhost:3000
networks:
- shorturl
# nginx:
# build: ../nginx
# image: shorturl/nginx
# environment:
# WEBAPP_PORT: 8080
# ports:
# - 90:80
# networks:
# - shorturl
# depends_on:
# - webapp
# - api
networks:
shorturl:
shorturl-db: