summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-05 11:21:47 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-05 11:21:47 +0200
commit78aeb7d411d34781225569f7d40eea3d91b198d2 (patch)
tree348d70cbd258963b446799d349f27572b4cf5712 /docker-compose.yml
parent4696f8d68e130632cbcdb14c2bb1dfe71355e9f6 (diff)
parent2b5780499c3e00e1969c461b864994757a21a8d8 (diff)
Merge branch 'dockerize' of https://github.com/feuerrot/travelynx into feuerrot-dockerize
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..0b7336d
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,40 @@
+version: "3.6"
+x-common-env: &common-env
+ TRAVELYNX_DB_HOST: database
+ TRAVELYNX_DB_NAME: travelynx
+ TRAVELYNX_DB_USERNAME: travelynx
+ TRAVELYNX_DB_PASSWORD: travelynx
+ TRAVELYNX_SECRET: 12345678
+ TRAVELYNX_MAIL_DISABLE: 1
+ MOJO_MODE: development
+
+x-common-config: &common-config
+ volumes:
+ - ./examples/docker/travelynx.conf:/app/travelynx.conf
+ build: .
+ networks:
+ - backend
+
+services:
+ database:
+ image: postgres:11
+ networks:
+ - backend
+ environment:
+ <<: *common-env
+ volumes:
+ - ./examples/docker/postgres-init.sh:/docker-entrypoint-initdb.d/init.sh
+ travelynx:
+ <<: *common-config
+ ports:
+ - "8000:8093"
+ environment:
+ <<: *common-env
+ cron:
+ <<: *common-config
+ environment:
+ <<: *common-env
+ CRON: 1
+
+networks:
+ backend: \ No newline at end of file