-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
48 lines (42 loc) · 1.04 KB
/
docker-compose.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
version: '3.1'
services:
### CALENDAR-SERVER ##########################################
calendar-mongo:
image: mongo:4.1.7
container_name: calendar-mongo
restart: always
ports:
- 27017:27017
volumes:
- ./_data/calendar-mongo:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: user_example
MONGO_INITDB_ROOT_PASSWORD: password_example
calendar-redis:
image: redis:5.0.3
container_name: calendar-redis
restart: always
ports:
- 6379:6379
volumes:
- ./_data/calendar-redis:/data
calendar-server:
image: node:11.8-alpine
container_name: calendar-server
restart: always
ports:
- 8080:8080
volumes:
- ./calendar-server:/var/www
working_dir: /var/www
command: sh -c "npm i && npm run dev"
calendar-client:
image: node:11.8-alpine
container_name: calendar-client
restart: always
ports:
- 80:3000
volumes:
- ./calendar-client:/var/www
working_dir: /var/www
command: sh -c "npm i && npm run start"