-
Notifications
You must be signed in to change notification settings - Fork 1
/
travis-docker-compose.yml
60 lines (60 loc) · 1.49 KB
/
travis-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
51
52
53
54
55
56
57
58
59
60
version: "3.7"
services:
frontend:
container_name: wcj-frontend
build:
context: ./frontend
dockerfile: Dockerfile
image: wcj/frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
backend:
container_name: wcj-backend
build:
context: ./backend
dockerfile: Dockerfile
image: wcj/backend
ports:
- "5000:5000"
volumes:
- ./backend:/usr/src/app
- /usr/src/app/node_modules
links:
- mongo
environment:
- GOOGLE_CLIENT_ID=googleid
- GOOGLE_CLIENT_SECRET=googlesecret
- MONGO_USER=user
- MONGO_PASSWORD=password
mongo:
container_name: wcj-mongo
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
ports:
- 27017:27017
volumes:
- ./mongodb_data:/data/db
mongoex:
container_name: wcj-mongo-express
image: mongo-express
restart: always
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
- ME_CONFIG_MONGODB_AUTH_DATABASE=admin
- ME_CONFIG_MONGODB_AUTH_USERNAME=${MONGO_USER}
- ME_CONFIG_MONGODB_AUTH_PASSWORD=${MONGO_PASSWORD}
- ME_CONFIG_MONGODB_ADMINUSERNAME=${MONGO_USER}
- ME_CONFIG_MONGODB_ADMINPASSWORD=${MONGO_PASSWORD}
ports:
- "8081:8081"
links:
- mongo
volumes:
mongodb_data: