diff --git a/host/next/docker/compose.yml b/host/next/docker/compose.yml index d27a8bc..05e4755 100644 --- a/host/next/docker/compose.yml +++ b/host/next/docker/compose.yml @@ -1,17 +1,18 @@ networks: - nginx-bridge: + ${NETWORK}: external: true services: techtracker-next: build: context: ../../.. dockerfile: host/next/docker/Dockerfile - image: techtracker-next:alpine - container_name: techtracker-next - hostname: techtracker-next - domainname: techtracker.gbrown.org - networks: [nginx-bridge] - ports: ['3000:3000'] + image: ${CONTAINER_NAME}:alpine + container_name: ${CONTAINER_NAME} + env_file: [.env] + hostname: ${CONTAINER_NAME} + domainname: ${DOMAIN_NAME} + networks: ['${NETWORK}'] + #ports: ['${PORT}:3000'] tty: true stdin_open: true restart: unless-stopped diff --git a/host/next/docker/env.example b/host/next/docker/env.example new file mode 100644 index 0000000..c11b5ee --- /dev/null +++ b/host/next/docker/env.example @@ -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