summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorMarkus Witt <feuerrot@feuerrot.org>2019-04-21 23:13:03 +0200
committerMarkus Witt <feuerrot@feuerrot.org>2019-05-03 22:36:12 +0200
commit46e85324df762672718c0a6a5ca60fb247e89e5d (patch)
tree5c462e5b16ffc3ff9f8e2d52da6263a62351afcb /docker-compose.yml
parent7df47bdc4e7d7a5f9a14a95069da454f6b890e77 (diff)
docker: add docker-compose configuration
🔥docker🔥compose🔥
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..ac482e0
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,29 @@
+version: "3.6"
+x-common-env: &common-env
+ TRAVELYNX_DB_HOST: database
+ TRAVELYNX_DB_NAME: travelynx
+ TRAVELYNX_DB_USERNAME: travelynx
+ TRAVELYNX_DB_PASSWORD: travelynx
+services:
+ database:
+ image: postgres:11
+ networks:
+ - backend
+ environment:
+ <<: *common-env
+ volumes:
+ - ./examples/docker/postgres-init.sh:/docker-entrypoint-initdb.d/init.sh
+ travelynx:
+ build: .
+ ports:
+ - "8000:8093"
+ networks:
+ - backend
+ volumes:
+ - ./examples/docker/travelynx.conf:/app/travelynx.conf
+ environment:
+ <<: *common-env
+ TRAVELYNX_MAIL_DISABLE: 1
+ TRAVELYNX_SECRET: 12345678
+networks:
+ backend: