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

46 lines
1,023 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/
environment:
NETWORK_ACCESS: internal
2022-08-23 19:11:43 +00:00
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
- ./nginx:/etc/nginx/conf.d
2022-08-23 19:11:43 +00:00
networks:
- tracker
- default
networks:
default:
external:
name: nginx-proxy
tracker:
driver: bridge