-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 821 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 821 Bytes
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
version: '3'
services:
build:
container_name: build
image: matfin/cinematt-build:latest
build:
context: .
dockerfile: .docker/next/Dockerfile
environment:
- BASE=https://cinematt.build
volumes:
- static-content:/opt/build/out
command: yarn deploy
serve:
container_name: serve
image: matfin/cinematt-serve:latest
build:
context: .
dockerfile: .docker/nginx/Dockerfile
environment:
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
- NGINX_HOST=cinematt.build
- SSL_CERTIFICATE=server.crt
- SSL_CERTIFICATE_KEY=server.key
ports:
- "80:80"
- "443:443"
volumes:
- ~/ssl/letsencrypt:/etc/letsencrypt:ro
- static-content:/opt/public:ro
command: nginx -g "daemon off;"
volumes:
static-content: