summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-14 19:38:26 +0300
committereug-vs <eug-vs@keemail.me>2020-11-14 19:38:26 +0300
commit33e640f1e8654fcfc8102b43449c79bcb4d5ddff (patch)
tree3936700d729067c998569adcb566ef5b47a1dffc /docker-compose.yml
parentfb8cdd4bce1c549135b435473b5ca30e77efa969 (diff)
downloadbsu-fantom-33e640f1e8654fcfc8102b43449c79bcb4d5ddff.tar.gz
build: setup docker correctly
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 0986cac..bb59b43 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -8,16 +8,19 @@ services:
app:
container_name: bsu-fantom
restart: always
+ init: true
build: .
environment:
- MONGODB_URI=mongodb://db:27017/bsu-fantom
+ env_file:
+ - .env
ports:
- '3030:3030'
links:
- db
db:
- container_name: mongo
+ container_name: bsu-fantom-db
image: mongo
ports:
- - '27017:27017'
+ - '27018:27017'