-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 910 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 910 Bytes
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
version: "3.5"
services:
mongo:
container_name: simple_chat_dev
image: mongo:latest
ports:
- 27017:27017
command: mongod --port 27017
mongo_seed:
image: 'pkosiec/mongo-seeding:3.0.0'
environment:
- DROP_DATABASE=true
- REPLACE_ID=true
- DB_NAME=simple-chat
- DB_PORT=27017
- DB_HOST=mongo
volumes:
- ./datastore:/datastore
working_dir: /datastore
links:
- mongo
depends_on:
- mongo
server:
image: 'node:14.6.0'
volumes:
- ./server:/server
working_dir: /server
ports:
- "3000:3000"
environment:
- PORT=3000
- CLIENT_ORIGIN=http://localhost:8080
- DB_CONNECTION_STRING=mongodb://mongo:27017/simple-chat
- OVERNIGHT_JWT_SECRET="my super long random string for fake auth"
- OVERNIGHT_JWT_EXP=24h
command: npm start
depends_on:
- mongo