Skip to content

Commit 0410980

Browse files
sivakomSiva Mullapudi
andauthored
Adding docker-compose support (#4)
* Adding docker-compose support Co-authored-by: Siva Mullapudi <scmullap@Sivas-MBP-2.attlocal.net>
1 parent fda351d commit 0410980

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
[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.
66

7+
Deploy locally with: `docker-compose -f deploy/compose/docker-compose.yml up --build`
8+
79
## Tech
810
### Stack
911
- Frontend: [NextJS](https://nextjs.org/)

deploy/compose/docker-compose.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
version: '2'
3+
4+
services:
5+
skillbased-backend:
6+
container_name: skillbased-backend
7+
# Use this if you want to run against upstream latest image
8+
# image: adamdevigili/balancer.team-api:latest
9+
build:
10+
context: ../../backend
11+
dockerfile: Dockerfile
12+
ports:
13+
- "127.0.0.1:8080:8080"
14+
environment:
15+
PG_HOST: postgres
16+
PG_PORT: 5432
17+
PG_USER: user
18+
PG_PASSWORD: ball
19+
PG_DATABASE: skillbased
20+
21+
skillbased-frontend:
22+
container_name: skillbased-frontend
23+
# Use this if you want to run against upstream latest image
24+
# image: adamdevigili/balancer.team-frontend:latest
25+
build:
26+
context: ../../frontend
27+
dockerfile: Dockerfile
28+
ports:
29+
- "127.0.0.1:3000:3000"
30+
31+
postgres:
32+
restart: always
33+
image: postgres
34+
ports:
35+
- 127.0.0.1:5432:5432
36+
environment:
37+
POSTGRES_USER: user
38+
POSTGRES_PASSWORD: ball
39+
POSTGRES_DB: skillbased

0 commit comments

Comments
 (0)