-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.44 KB
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
version: '3'
services:
client:
build: ./client
container_name: document-voting-client
depends_on:
- api
environment:
PORT: $CLIENT_PORT
NODE_ENV: development
REACT_APP_TRANSLATION_SERVICE: $TRANSLATION_SERVICE
volumes:
- /document-voting-client/node_modules
- ./client:/document-voting-client
api:
build: ./api
container_name: document-voting-api
depends_on:
- db
environment:
API_PORT: $API_PORT
DB_NAME: $DB_NAME
DOCUMENTS_COLLECTION: $DOCUMENTS_COLLECTION
VOTES_COLLECTION: $VOTES_COLLECTION
NODE_ENV: development
volumes:
- /document-voting-api/node_modules
- ./api:/document-voting-api
nginx:
build:
context: ./nginx
args:
API_PORT: $API_PORT
CLIENT_PORT: $CLIENT_PORT
container_name: document-voting-nginx
depends_on:
- api
- client
ports:
- 80:80
volumes:
- ./client/build:/var/www/html
db:
image: mongo:3.6
container_name: document-voting-db
environment:
DB_NAME: $DB_NAME
DOCUMENTS_COLLECTION: $DOCUMENTS_COLLECTION
VOTES_COLLECTION: $VOTES_COLLECTION
volumes:
- ./db:/db