From 87306ea2e4ffad7b8c588da0423ecf199575ac9c Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 14 Nov 2020 14:30:18 +0300 Subject: build: dockerize application --- docker-compose.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0986cac --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,23 @@ +# Build and run bsu-fantom with database in container +# +# If you are getting "port already in use" error, +# try changing exposed ports, e.g 27017:27017 -> 27018:27017 + +version: '3' +services: + app: + container_name: bsu-fantom + restart: always + build: . + environment: + - MONGODB_URI=mongodb://db:27017/bsu-fantom + ports: + - '3030:3030' + links: + - db + db: + container_name: mongo + image: mongo + ports: + - '27017:27017' + -- cgit v1.2.3