-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose copy.yml
47 lines (47 loc) · 1.06 KB
/
docker-compose copy.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
version: "3.8"
services:
server:
build:
context: .
ports:
- 3000:3000
environment:
PORT: 3000
NODE_ENV: "development"
MONGODB_URI: "mongodb://user1:user1pw@mongo:27017/expense-tracker"
SESSION_SECRET: "ThisIsHanaSecret"
FACEBOOK_ID: "xxx"
FACEBOOK_SECRET: "xxx"
FACEBOOK_CALLBACK: "xxx"
GOOGLE_CLIENT_ID: "xxx"
GOOGLE_CLIENT_SECRET: "xxxy"
GOOGLE_CALLBACK: "xxx"
networks:
- application
depends_on:
- database
data:
build:
context: models/seeds
dockerfile: seed.Dockerfile
depends_on:
- database
networks:
- application
database:
image: mongo
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_DATABASE: expense-tracker
volumes:
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js
- ./mongo_db:/data/db
ports:
- 27017:27017
restart: unless-stopped
networks:
- application
networks:
application: