From d44bd1f310dc583d241c4d2eb12624f6e66bbd32 Mon Sep 17 00:00:00 2001 From: Ben Rometsch Date: Mon, 1 Jun 2020 11:56:55 +0100 Subject: [PATCH] Initial Release --- docker-compose.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0615630 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,31 @@ +version: '3' +services: + db: + image: postgres:10.6-alpine + environment: + POSTGRES_PASSWORD: password + POSTGRES_DB: bullettrain + api: + image: bullettrain/api:latest + environment: + DJANGO_DB_NAME: bullettrain + DJANGO_DB_USER: postgres + DJANGO_DB_PASSWORD: password + DJANGO_DB_PORT: 5432 + DJANGO_ALLOWED_HOSTS: localhost + ports: + - "8000:8000" + depends_on: + - db + links: + - db:db + frontend: + image: bullettrain/frontend:latest + environment: + API_URL: http://localhost:8000/api/v1/ + ASSET_URL: http://localhost:8080/ + ports: + - "8080:8080" + links: + - api:api + \ No newline at end of file