-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
30 lines (30 loc) · 959 Bytes
/
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
services:
goofyn-main:
image: rpdjf/goofyn:latest
container_name: goofyn
depends_on:
- goofyn-mongodb
environment:
DEFAULT_LANGUAGE: en
MONGO_USERNAME: root
MONGO_PASSWORD: root
MONGO_DB: goofyn
MONGO_URI: mongodb://goofyn-mongodb:27017
#SCRIPT: firestore2mongo.js # only if using firestore2mongo script
volumes:
- /etc/localtime:/etc/localtime:ro
- ./.env:/usr/src/app/.env # can be setup in environment variables instead
#- ./firebase-key.json:/usr/src/app/config/firebase-key.json # only if using firestore2mongo script
restart: always
goofyn-mongodb:
image: mongo:latest
container_name: goofyn-mongodb
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
MONGO_INITDB_DATABASE: goofyn
MONGO_PORT: 27017
volumes:
- /etc/localtime:/etc/localtime:ro
- ./mongo-data:/data/db