Skip to content

logchimp/docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚧 W.I.P LogChimp Docker image

Docker

Deploy LogChimp site

Make sure to run the scripts in order from top to bottom.

Create a docker network which is shared between database and LogChimp app.

docker network create -d bridge logchimp_network

You can change the values of environment variable.

docker run -d \
	--name db \
	-p 5000:5432 \
	--network=logchimp_network \
	-e POSTGRES_DB=logchimp_db \
	-e POSTGRES_USER=logchimp_user \
	-e POSTGRES_PASSWORD=logchimp_password \
	postgres:12.4
docker run -d \
	--name lc \
	-p 8080:8080 \
	-p 3000:3000 \
	--network=logchimp_network \
	-e PG_HOST=db \
	-e PG_USER=logchimp_user \
	-e PG_DATABASE=logchimp_db \
	-e PG_PASSWORD=logchimp_password \
	-e PG_PORT=5432 \
	-e SECRET_KEY=Fig8=Diq1 \
	logchimp