Added support for Docker, Docker-Compose

- updated config.js template to support environment variables
This commit is contained in:
Alexander Wong
2020-12-07 12:57:20 -07:00
parent 1c76daa166
commit 734b11c926
5 changed files with 69 additions and 19 deletions
+24
View File
@@ -0,0 +1,24 @@
version: "3.8"
services:
redis:
image: redis:6.0.9-alpine3.12
command: redis-server
environment:
- REDIS_REPLICATION_MODE=master
ports:
- "6379:6379"
networks:
- teddit_net
web:
build: .
environment:
- REDIS_HOST=redis
ports:
- 8080:8080
networks:
- teddit_net
depends_on:
- redis
networks:
teddit_net: