-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
38 lines (35 loc) · 957 Bytes
/
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
version: '3.5'
services:
next:
build: infrastructure/node
environment:
- NODE_ENV=production
- HOME=/app/var/cache
- REACT_ESI_SECRET=secretOnProd
volumes:
- .:/app
working_dir: '/app'
command: 'npm start'
user: '${UID}:${GID}'
extra_hosts:
- 'react-esi.local:127.0.0.1'
ports:
- '3000:3000'
nginx:
image: nginx:alpine
volumes:
- .:/app
- ./infrastructure/nginx/site-prod.conf:/etc/nginx/conf.d/default.conf
- ./infrastructure/tls/:/etc/nginx/conf.d
depends_on:
- next
ports:
- '443:443'
varnish:
build: infrastructure/varnish
depends_on:
- next
volumes:
- ./infrastructure/varnish/:/usr/local/etc/varnish:ro
tmpfs:
- /usr/local/var/varnish:exec