-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (38 loc) · 932 Bytes
/
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
version: '3'
services:
socketio:
build:
context: .
dockerfile: Dockerfile
image: server
container_name: server
restart: always
command: node app.js
volumes:
- /home/logs:/home/logs
ports:
- 3000:3000
environment:
- NODE_ENV=prod
- SERVER_PORT=3000
- API_BASE='/api/'
- LOG_PATH=/home/logs
networks:
- app-network
nginx:
image: nginx:1.19.2-alpine
container_name: nginx
ports:
- 80:80
- 443:443
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- /data/letsencrypt/:/data/letsencrypt/
- /etc/letsencrypt/live/coinlocaly.com-0001/fullchain.pem:/ssl/fullchain.pem
- /etc/letsencrypt/live/coinlocaly.com-0001/privkey.pem:/ssl/privkey.pem
- /etc/letsencrypt/live/coinlocaly.com-0001/chain.pem:/ssl/chain.pem
networks:
- app-network
networks:
app-network:
driver: bridge