-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 1.06 KB
/
docker-compose.yml
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
version: '3'
services:
calendario-weblclient:
env_file: .env
build:
context: ./client
dockerfile: Dockerfile
args:
- SERVER_HOST=localhost
- SERVER_OUT_PORT=$SERVER_OUT_PORT
container_name: calendario-webclient
environment:
- SERVER_HOST=calendario-server
ports:
- 80:80
networks:
- calendario-network
depends_on:
- calendario-server
calendario-server:
build:
context: ./server
dockerfile: Dockerfile
container_name: calendario-server
env_file: .env
environment:
- MONGO_HOSTNAME=calendariodb
- MONGO_PORT=27017
ports:
- $SERVER_OUT_PORT:$SERVER_PORT
volumes:
- node_modules:/usr/src/app/node_modules
networks:
- calendario-network
depends_on:
- calendariodb
calendariodb:
image: mongo:4.1.8-xenial
container_name: calendariodb
env_file: .env
volumes:
- dbdata:/data/db
networks:
- calendario-network
networks:
calendario-network:
driver: bridge
volumes:
dbdata:
node_modules: