-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose-aws.yml
39 lines (36 loc) · 1.18 KB
/
docker-compose-aws.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
################
version: '2.1'
services:
api:
container_name: api
build:
context: ./services/api
volumes:
- "./util:/util/"
ports:
- "${API_PORT}:${API_PORT}"
environment:
- ES=${ES}
- SWAGGER_HOST=${SWAGGER_HOST}
nginx:
container_name: nginx_g2p
image: openresty/openresty:trusty
depends_on:
- api
volumes:
- "./util:/util/"
- "./services/nginx/nginx_authorize_by_lua-aws.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro"
- "./services/nginx/authorize-aws.lua:/usr/local/openresty/nginx/conf/authorize.lua:ro"
- "./services/nginx/.htpasswd:/usr/local/openresty/nginx/conf/.htpasswd"
- "./certs:/certs"
- "./services/nginx/g2p.html:/var/www/static-html/g2p.html"
- "./services/ui/index.html:/var/www/static-html/demo-ui/index.html"
- "./services/ui/index.js:/var/www/static-html/demo-ui/index.js"
- "./services/ui/config.json:/var/www/static-html/demo-ui/config.json"
- "./services/ui/favicon.ico:/var/www/static-html/demo-ui/favicon.ico"
ports:
- "443:443"
- "80:80"
environment:
- SERVER_NAME=${SERVER_NAME}
- ADMIN_EMAIL=${ADMIN_EMAIL}