-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
30 lines (30 loc) · 1.41 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
services:
postgres:
image: postgres:15.3-alpine
ports:
- "127.0.0.1:4433:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 1s
environment:
POSTGRES_HOST_AUTH_METHOD: trust
nginx-proxy:
image: nginx:1.17.6-alpine
ports:
- '9083:9083'
environment:
- NGINX_SECURE_LINK_SECRET
volumes:
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./conf/nginx/includes/proxy.conf:/etc/nginx/includes/proxy.conf:ro
- ./conf/nginx/includes/errors.conf:/etc/nginx/includes/errors.conf:ro
- ./conf/nginx/includes/robots.conf:/etc/nginx/includes/robots.conf:ro
- ./conf/nginx/includes/abuse_response_headers.conf:/etc/nginx/includes/abuse_response_headers.conf:ro
- ./conf/nginx/includes/secure_links.conf:/etc/nginx/includes/secure_links.conf:ro
- ./conf/nginx/includes.dev/app_upstream.conf:/etc/nginx/includes/app_upstream.conf:ro
- ./conf/nginx/includes.dev/resolver.conf:/etc/nginx/includes/resolver.conf:ro
- ./conf/nginx/dev_host_bridge.sh:/etc/nginx/dev_host_bridge.sh:ro
- ./conf/nginx/envsubst.conf.template:/var/lib/hypothesis/nginx_envsubst.conf.template:ro
command: /bin/sh -c "/etc/nginx/dev_host_bridge.sh && envsubst '$${NGINX_SECURE_LINK_SECRET}' < /var/lib/hypothesis/nginx_envsubst.conf.template > /var/lib/hypothesis/nginx_envsubst.conf && exec nginx"
profiles:
- make_dev