aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..c788f43
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,31 @@
+version: '3'
+
+services:
+ app:
+ image: rusian/heroeapi
+ container_name: heroeapi
+ env_file: .env
+ networks:
+ - heroeapi
+ ports:
+ - "5000:5000"
+ tty: true
+ restart: "always"
+
+ mongo:
+ image: mongo:4.4.12-focal
+ container_name: heroeapi_db
+ restart: always
+ command: [--auth]
+ env_file:
+ - .db.env
+ networks:
+ - heroeapi
+ volumes:
+ - ./heroeapi_db:/data/db
+ ports:
+ - "27017:27017"
+
+networks:
+ default:
+ name: heroeapi