Add environment variables to docker config so we can have a dev server
This commit is contained in:
@@ -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
|
||||||
|
8
host/next/docker/env.example
Normal file
8
host/next/docker/env.example
Normal 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
|
Reference in New Issue
Block a user