-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathdocker-compose.yml
47 lines (45 loc) · 1.37 KB
/
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
name: blot
services:
node-app:
image: blot
build:
context: .
dockerfile: Dockerfile
target: dev # This line specifies which stage to build
ports:
- "8080:8080"
depends_on:
- redis
env_file:
- .env
environment:
- BLOT_REDIS_HOST=redis
- CONTAINER_NAME=blot-container-green
volumes:
- ./data:/usr/src/app/data
- ./.git:/usr/src/app/.git
- ./app:/usr/src/app/app
- ./tests:/usr/src/app/tests
- ./notes:/usr/src/app/notes
- ./scripts:/usr/src/app/scripts
- ./todo.txt:/usr/src/app/todo.txt
- ./config:/usr/src/app/config
command: npx nodemon /usr/src/app/app/index.js --watch /usr/src/app/app -e js,html,css --ignore /usr/src/app/app/documentation/data --ignore /usr/src/app/app/documentation/output --ignore /usr/src/app/app/views --ignore /usr/src/app/app/views-built --ignore /usr/src/app/app/clients/*/views --ignore /usr/src/app/app/templates/folders
redis:
image: "redis:alpine"
ports:
- "6379:6379" # Expose Redis port 6379 to host so we can run scripts if needed
volumes:
- "./data:/data"
nginx:
build:
context: ./config/openresty
dockerfile: Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- ./data/ssl:/etc/ssl
depends_on:
- node-app
command: /bin/sh -c "sh /etc/nginx/init.sh"