-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
50 lines (49 loc) · 1.05 KB
/
docker-compose.dev.yml
File metadata and controls
50 lines (49 loc) · 1.05 KB
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
volumes:
mongo:
images:
services:
web:
build:
context: .
dockerfile: dev.Dockerfile
depends_on:
- mongo
- redis
environment:
- NODE_ENV=${NODE_ENV}
- SITE=${SITE}
- GOOGLE_ID=${GOOGLE_ID}
- GOOGLE_SECRET=${GOOGLE_SECRET}
- MONGODB_URI=${MONGODB_URI}
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
env_file:
- .env
ports:
- '3000:3000'
- '9229:9229'
volumes:
- ./src:/usr/src/app/src
- ./public:/usr/src/app/public
- ./config.js:/usr/src/app/config.js
- ./theme.js:/usr/src/app/theme.js
restart: unless-stopped
mongo:
image: mongo
ports:
- '27017:27017'
volumes:
- mongo:/data/db
imaginary:
image: h2non/imaginary:latest
volumes:
- images:/mnt/data
environment:
PORT: 9000
command: -enable-url-source -mount /mnt/data -allowed-origins ${IMAGINARY_ALLOWED_ORIGINS} -http-cache-ttl 31556926
ports:
- '9000:9000'
redis:
image: redis
ports:
- '6379:6379'