summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorMarkus Witt <feuerrot@feuerrot.org>2019-05-03 22:50:59 +0200
committerMarkus Witt <feuerrot@feuerrot.org>2019-05-03 22:50:59 +0200
commit2b5780499c3e00e1969c461b864994757a21a8d8 (patch)
tree695bfb16ec179debf7aebd74e9f82dd881cba7a1 /docker-compose.yml
parent46e85324df762672718c0a6a5ca60fb247e89e5d (diff)
use cpanfile to install dependencies, run worker in another docker container
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml27
1 files changed, 19 insertions, 8 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index ac482e0..0b7336d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -4,6 +4,17 @@ x-common-env: &common-env
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
@@ -14,16 +25,16 @@ services:
volumes:
- ./examples/docker/postgres-init.sh:/docker-entrypoint-initdb.d/init.sh
travelynx:
- build: .
+ <<: *common-config
ports:
- "8000:8093"
- networks:
- - backend
- volumes:
- - ./examples/docker/travelynx.conf:/app/travelynx.conf
environment:
<<: *common-env
- TRAVELYNX_MAIL_DISABLE: 1
- TRAVELYNX_SECRET: 12345678
+ cron:
+ <<: *common-config
+ environment:
+ <<: *common-env
+ CRON: 1
+
networks:
- backend:
+ backend: \ No newline at end of file