diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-05-05 11:22:38 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-05-05 11:22:38 +0200 |
commit | 8c23c960426bad133484bf127f5fc5b56af8e8c7 (patch) | |
tree | d96d4ef00707088913fed0b97fb03eb56a2064c0 /docker-compose.yml | |
parent | 4696f8d68e130632cbcdb14c2bb1dfe71355e9f6 (diff) | |
parent | a1a0f33cab731eb60051af6bd5ae78cd6660b76f (diff) |
Merge branch 'feuerrot-dockerize'
Addresses #4
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 40 |
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 |