Nginx infrastructure
This commit is contained in:
@@ -1,19 +1,23 @@
|
||||
version: '3'
|
||||
services:
|
||||
wrenchboard-api:
|
||||
image: registry.chiefsoft.net/wrenchboard-www-api:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/apache/Dockerfile
|
||||
args:
|
||||
uid: ${UID}
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
hostname: wrenchboard-www-api
|
||||
container_name: wrenchboard-www-api
|
||||
environment:
|
||||
- APACHE_RUN_USER=#${UID}
|
||||
- APACHE_RUN_GROUP=#${UID}
|
||||
- NGINX_HOST=wrenchboard-www-api
|
||||
- NGINX_PORT=80
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./:/var/www/html
|
||||
- ./apache_log:/var/log/apache2
|
||||
- ./:/usr/share/nginx/html
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./logs:/etc/nginx/logs
|
||||
ports:
|
||||
- 9083:80
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
src:
|
||||
Reference in New Issue
Block a user