-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
58 lines (53 loc) · 1.32 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
48
49
50
51
52
53
54
55
56
57
version: '3'
services:
nginx:
image: nginx:stable
volumes:
- .:/opt/sca/sqan/
- ./config/sqan.conf:/etc/nginx/conf.d/default.conf
- ./config/ssl:/etc/nginx/ssl
ports:
- 8000:80
- 443:443
# entrypoint: ["tail", "-f", "/dev/null"]
mongo:
image: mongo:4.0-xenial
restart: always
#environment:
#MONGO_INITDB_ROOT_USERNAME: root
#MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- ./mongo:/data/db
#- ./mongodump:/opt/mongodump
api:
image: node:12
volumes:
- .:/opt/sca/sqan/
- apimodules:/opt/sca/sqan/node_modules
#ports:
# - 22340:22340
#environment:
# ME_CONFIG_MONGODB_ADMINUSERNAME: root
# ME_CONFIG_MONGODB_ADMINPASSWORD: example
working_dir: /opt/sca/sqan
# entrypoint: ["tail", "-f", "/dev/null"]
# command: npm run start
command: sh -c "
mkdir -p /opt/sca/var/log
&& node ./api/sqan.js
"
# DEBUG=express:* node ./api/sqan.js
ui:
image: node:12
volumes:
- .:/opt/sca/sqan/
- nodemodules:/opt/sca/sqan/ui/node_modules
working_dir: /opt/sca/sqan/ui
# keep the container running
entrypoint: ["tail", "-f", "/dev/null"]
# command: npm run builddev
volumes:
nodemodules:
external: true
apimodules:
external: true