-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose-node.yml
More file actions
72 lines (69 loc) · 1.82 KB
/
docker-compose-node.yml
File metadata and controls
72 lines (69 loc) · 1.82 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
61
62
63
64
65
66
67
68
69
70
71
72
version: "3"
services:
nginx:
container_name: dcnmp_nginx
build:
context: nginx
args:
NGINX_VERSION: ${NGINX_VERSION}
ALPINE_REPOSITORIES: ${ALPINE_REPOSITORIES}
ALPINE_REPOSITORIES_REPLACE: ${ALPINE_REPOSITORIES_REPLACE}
TZ: ${TZ}
ports:
- "${NGINX_HTTP_HOST_PORT}:80"
- "${NGINX_HTTPS_HOST_PORT}:443"
volumes:
- ${CODE_PATH}:/app/www/:rw
- ${CONF_PATH}/nginx/conf/conf.d:/etc/nginx/conf.d:rw
- ${CONF_PATH}/nginx/conf/vhost:/etc/nginx/vhost:rw
- ${CONF_PATH}/nginx/conf/nginx.conf:/etc/nginx/nginx.conf:ro
- ${LOG_PATH}/nginx:/var/log/nginx/:rw
stdin_open: true
tty: true
restart: always
networks:
- dcnmp
mongodb:
container_name: dcnmp_mongodb
build:
context: mongodb
args:
MONGODB_VERSION: ${MONGODB_VERSION}
environment:
MONGO_INITDB_ROOT_USERNAME: "${MONGODB_INITDB_ROOT_USERNAME}"
MONGO_INITDB_ROOT_PASSWORD: "${MONGODB_INITDB_ROOT_PASSWORD}"
TZ: "${TZ}"
volumes:
- ${DATA_PATH}/mongodb:/data/db:rw
- ${DATA_PATH}/mongodb/mongo_key:/mongo:rw
- ${LOG_PATH}/mongodb:/var/log/mongodb/:rw
ports:
- "${MONGODB_HOST_PORT}:27017"
restart: always
stdin_open: true
tty: true
networks:
- dcnmp
command:
--auth
nodejs:
container_name: dcnmp_nodejs
build:
context: nodejs
args:
ALPINE_REPOSITORIES: ${ALPINE_REPOSITORIES}
ALPINE_REPOSITORIES_REPLACE: ${ALPINE_REPOSITORIES_REPLACE}
NODEJS_VERSION: ${NODEJS_VERSION}
TZ: ${TZ}
ports:
- "${NODEJS_HOST_PORT_3000}:3000"
- "${NODEJS_HOST_PORT_8088}:8088"
volumes:
- ${CODE_PATH}:/app/www/:rw
restart: always
stdin_open: true
tty: true
networks:
- dcnmp
networks:
dcnmp: