feat: add docker files
adds compose.yml, Dockerfile and entrypoint.sh for running the backend inside of docker
This commit is contained in:
parent
026d48c6e7
commit
c69f2eb4f0
3 changed files with 94 additions and 0 deletions
33
compose.yml
Normal file
33
compose.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
version: '3.5'
|
||||
volumes:
|
||||
gorb-backend:
|
||||
gorb-database:
|
||||
networks:
|
||||
gorb:
|
||||
services:
|
||||
backend:
|
||||
image: gorb/backend:latest
|
||||
restart: always
|
||||
ports:
|
||||
- 8080:8080
|
||||
networks:
|
||||
- gorb
|
||||
volumes:
|
||||
- gorb-backend:/gorb
|
||||
environment:
|
||||
- DATABASE_USERNAME=gorb
|
||||
- DATABASE_PASSWORD=gorb
|
||||
- DATABASE=gorb
|
||||
- DATABASE_HOST=database
|
||||
- DATABASE_PORT=5432
|
||||
database:
|
||||
image: postgres:16
|
||||
restart: always
|
||||
networks:
|
||||
- gorb
|
||||
volumes:
|
||||
- gorb-database:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=gorb
|
||||
- POSTGRES_PASSWORD=gorb
|
||||
- POSTGRES_DB=gorb
|
Loading…
Add table
Add a link
Reference in a new issue