-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·76 lines (71 loc) · 1.51 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·76 lines (71 loc) · 1.51 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
73
74
75
76
version: '3.7'
services:
app-nextjs:
container_name: app-cedit
build:
context: .
dockerfile: Dockerfile
volumes:
- './app:/opt/app'
- cedit-vol:/opt/app/node_modules
ports:
- 3000:3000
#environment:
#- DB_HOST=
#- DB_CREDENTIALS=
#- BACKEND_IP=
#- BACKEND_PORT=
#- API_KEY="AIzaSyCzA9fW-aOeTUOPnWrUuUmNEi5UDHz8JKE"
stdin_open: true
tty: true
user: node
working_dir: /opt/app
environment:
- CHOKIDAR_USEPOLLING=true
command: ["npm", "start"]
volumes:
cedit-vol:
#command: ["npm", "run", "s", "--silent"]
# depends_on:
# - node-database
#
# test-backend:
# container_name: test-backend
# build:
# context: .
# dockerfile: Dockerfile.backend
# volumes:
# - './backend:/opt/backend'
# - '/opt/backend/node_modules'
#
# #working_dir: /opt/server
# expose:
# - 9900
# ports:
# - 9900:9900
# environment:
# - PORT=9900
# - HOST_IP=0.0.0.0
# command: ['nodemon', 'server.js']
# test-database:
# container_name: test-database
# image: mongo
# ports:
# - 27017:27017
# volumes:
# - './test-db:/data/db'
# environment:
# - MONGO_INITDB_ROOT_USERNAME=mongo
# - MONGO_INITDB_ROOT_PASSWORD=mongo
#
# nginx:
# image: nginx:alpine
# container_name: nginx
# volumes:
# - "./nginx.conf:/etc/nginx/conf.d/default.conf"
# ports:
# - 8080:80
# depends_on:
# - test-node
# - node-server
#