45 lines
1,023 B
YAML
45 lines
1,023 B
YAML
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
|
|
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
|
|
networks:
|
|
- tracker
|
|
- default
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: nginx-proxy
|
|
tracker:
|
|
driver: bridge
|