forked from adrysn/backend.ai-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 940 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 940 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
version: '3.1'
services:
pipeline:
build:
context: .
dockerfile: ./Dockerfile
ports:
- "80:80"
volumes:
- ./config.toml:/usr/share/nginx/html/config.toml
- ./certificates:/etc/certificates
environment:
- NGINX_HOST=localhost
command: /bin/bash -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
networks:
- backend
pipeline-ssl:
build:
context: .
dockerfile: ./Dockerfile
ports:
- "443:443"
volumes:
- ./config.toml:/usr/share/nginx/html/config.toml
- ./certificates:/etc/certificates
environment:
- NGINX_HOST=localhost
command: /bin/bash -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default-ssl.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
networks:
- backend
networks:
backend:
driver: bridge