Add environment variables to docker config so we can have a dev server
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										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