diff --git a/README.md b/README.md index ce1ad40..39995bb 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ [skillbased.io](http://skillbased.io) is a service that is aimed to provide players of casual, "pick-up" type sports to quickly and easily create balanced teams for their activity, and save those teams to create elevated levels of competition. +Deploy locally with: `docker-compose -f deploy/compose/docker-compose.yml up --build` + ## Tech ### Stack - Frontend: [NextJS](https://nextjs.org/) diff --git a/deploy/compose/docker-compose.yml b/deploy/compose/docker-compose.yml new file mode 100644 index 0000000..1686382 --- /dev/null +++ b/deploy/compose/docker-compose.yml @@ -0,0 +1,39 @@ + +version: '2' + +services: + skillbased-backend: + container_name: skillbased-backend + # Use this if you want to run against upstream latest image + # image: adamdevigili/balancer.team-api:latest + build: + context: ../../backend + dockerfile: Dockerfile + ports: + - "127.0.0.1:8080:8080" + environment: + PG_HOST: postgres + PG_PORT: 5432 + PG_USER: user + PG_PASSWORD: ball + PG_DATABASE: skillbased + + skillbased-frontend: + container_name: skillbased-frontend + # Use this if you want to run against upstream latest image + # image: adamdevigili/balancer.team-frontend:latest + build: + context: ../../frontend + dockerfile: Dockerfile + ports: + - "127.0.0.1:3000:3000" + + postgres: + restart: always + image: postgres + ports: + - 127.0.0.1:5432:5432 + environment: + POSTGRES_USER: user + POSTGRES_PASSWORD: ball + POSTGRES_DB: skillbased