Add environment variables to docker config so we can have a dev server

This commit is contained in:
2025-09-08 12:19:55 -05:00
parent 87b3f61717
commit c227d42e5e
2 changed files with 16 additions and 7 deletions

View File

@@ -1,17 +1,18 @@
networks: networks:
nginx-bridge: ${NETWORK}:
external: true external: true
services: services:
techtracker-next: techtracker-next:
build: build:
context: ../../.. context: ../../..
dockerfile: host/next/docker/Dockerfile dockerfile: host/next/docker/Dockerfile
image: techtracker-next:alpine image: ${CONTAINER_NAME}:alpine
container_name: techtracker-next container_name: ${CONTAINER_NAME}
hostname: techtracker-next env_file: [.env]
domainname: techtracker.gbrown.org hostname: ${CONTAINER_NAME}
networks: [nginx-bridge] domainname: ${DOMAIN_NAME}
ports: ['3000:3000'] networks: ['${NETWORK}']
#ports: ['${PORT}:3000']
tty: true tty: true
stdin_open: true stdin_open: true
restart: unless-stopped restart: unless-stopped

View File

@@ -0,0 +1,8 @@
NETWORK=nginx-bridge
CONTAINER_NAME=techtracker-next
DOMAIN_NAME=techtracker.gbrown.org
# Port is disabled by default as suggested
# config is to have reverse proxy on the same
# network so you can just forward to the
# port on the internal network.
PORT=3000