Where-in-the-World-is-Ben/docker-compose.yml

44 lines
980 B
YAML
Raw Normal View History

2022-08-23 19:11:43 +00:00
version: "3"
services:
app:
build:
args:
user: debian
uid: 1000
context: ./
dockerfile: Dockerfile
image: tracker
container_name: tracker-app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- tracker
webserver:
image: nginx
container_name: tracker-webserver
restart: unless-stopped
expose:
- 80
- 443
ports:
- "8000:80"
environment:
VIRTUAL_HOST: track.bengoldsworthy.net
LETSENCRYPT_HOST: track.bengoldsworthy.net
volumes:
- ./:/var/www
- ./docker-compose/nginx:/etc/nginx/conf.d
networks:
- tracker
- default
networks:
default:
external:
name: nginx-proxy
tracker:
driver: bridge