-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
44 lines (41 loc) · 1.06 KB
/
docker-compose.prod.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
version: "3"
services:
web:
build: ./loopback_chatbot/
environment:
- NODE_ENV=production
ports:
- "3000"
networks:
- "reswork"
command: ["./wait-for-it.sh", "db:3306", --, "npm", "start"]
db:
image: mysql:5.7
ports:
- "3306"
networks:
- "reswork"
volumes:
- lex-data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: MysqlRootPassword
MYSQL_DATABASE: DatabaseName
MYSQL_USER: MysqlUserName
MYSQL_PASSWORD: MysqlPassword
nginx-reverse-proxy:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
networks:
- "reswork"
## Change the file path by switching the words dev and prod to fit your deployment stage.
volumes:
- ./nginx_reverse_proxy/dev/nginx.conf:/etc/nginx/nginx.conf
## Uncomment the following line in order to access ssl keys in production environment.
##- /etc/letsencrypt/:/etc/letsencrypt/
networks:
reswork:
volumes:
lex-data: