diff options
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 29 |
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: |