forked from abrdk/Daydreamer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.02 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
51
52
53
54
55
56
57
58
59
60
version: '3.8'
networks:
internal:
driver: bridge
internal: true
external:
driver: bridge
external: true
volumes:
dayd_mongo:
services:
nginx:
image: nginx:alpine
restart: unless-stopped
volumes:
- ./containers/nginx:/etc/nginx
entrypoint: [ "nginx", "-g", "daemon off;" ]
depends_on:
- daydreamer
ports:
- 80:80
- 443:443
networks:
- external
- internal
daydreamer:
hostname: daydreamer
container_name: daydreamer
build:
context: .
dockerfile: Dockerfile
args:
NODE_ENV: ${NODE_ENV}
ports:
- 3000:3000
environment:
NODE_ENV: ${NODE_ENV}
MONGO_URI: ${MONGO_URI}
volumes:
- ${DEPENDENCIES:-/dev/null}:/var/www/node_modules
networks:
- internal
depends_on:
- mongo
mongo:
image: mongo:latest
hostname: mongo
ports:
- 27017:27017
volumes:
- dayd_mongo:/data/db
command: mongod
restart: always
networks:
- internal