-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.68 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
58
59
60
61
62
63
64
version: "3.7"
services:
screen-explorer-nginx:
container_name: screen-explorer-nginx
restart: always
init: true
image: nginx:1.19.0
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/nginx/conf.d:/etc/nginx/conf.d
- ./docker/dh-param/dhparam-2048.pem:/etc/ssl/certs/dhparam-2048.pem
- /docker-volumes/etc/letsencrypt/live/screenexplorer.biz/fullchain.pem:/etc/letsencrypt/live/screenexplorer.biz/fullchain.pem
- /docker-volumes/etc/letsencrypt/live/screenexplorer.biz/privkey.pem:/etc/letsencrypt/live/screenexplorer.biz/privkey.pem
- /docker-volumes/data/letsencrypt:/usr/share/nginx/html
- /docker-volumes/var/log/nginx:/var/log/nginx
depends_on:
- screen-explorer-server-api
- screen-explorer-client
networks:
- screen-explorer-network
screen-explorer-server-api:
container_name: screen-explorer-server-api
restart: always
init: true
build:
context: ./server
dockerfile: Dockerfile
depends_on:
- screen-explorer-redis
command: npm run start:prod
env_file:
- ./server/.env
environment:
- NODE_ENV=production
networks:
- screen-explorer-network
screen-explorer-redis:
container_name: screen-explorer-redis
restart: always
init: true
image: redis:6.0.3
networks:
- screen-explorer-network
screen-explorer-client:
container_name: screen-explorer-client
restart: always
init: true
build:
context: ./client
dockerfile: Dockerfile
depends_on:
- screen-explorer-server-api
networks:
- screen-explorer-network
networks:
screen-explorer-network:
driver: bridge