-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
78 lines (69 loc) · 1.58 KB
/
docker-compose.yaml
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
77
78
version: '3'
services:
nginx:
build:
context: .
dockerfile: nginx.dockerfile
networks:
- nodeapp-network
volumes:
- ./nginx/:/etc/nginx/
- ./nginx/conf.nginx:/etc/nginx/nginx.conf
- ./Backend/Compiled/dist/:/etc/nginx/html/app1/
- ./nginx/SSL/localhost.cert:/etc/ssl/localhost.cert
- ./nginx/SSL/localhost.key:/etc/ssl/localhost.key
ports:
- '80:80'
- '443:433'
depends_on:
- node
redis:
image: redis
networks:
- nodeapp-network
# depends_on:
# - postgres
postgres:
build:
context: .
dockerfile: postgres.dockerfile
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: MyNewPass
POSTGRES_DB: root
DB_USER: meeseeks
DB_PASS: MEESEEKS
DB_NAME: pinit
DB_NAME2: test
ports:
- "5432:5432"
networks:
- nodeapp-network
node:
build:
context: .
dockerfile: node.dockerfile
#command: ["npm", "run-script","mocha"]
command: ["pm2-dev","start","pm2.config.json"]
environment:
# NODE_ENV: test
NODE_ENV: development
depends_on:
- postgres
- redis
volumes:
- ./Backend/Compiled/:/var/www/
- /var/www/node_modules
- ./Backend/package.json:/var/www/package.json
- ./Backend/pm2.config.json:/var/www/pm2.config.json
- ./Backend/database/Images.proto:/var/www/database/Images.proto
- ./Backend/.env:/var/www/.env
# ports:
# - "3000:3000"
env_file:
-
networks:
- nodeapp-network
networks:
nodeapp-network:
driver: bridge