Skip to content

Commit

Permalink
add build environments, test actionas build process/image
Browse files Browse the repository at this point in the history
  • Loading branch information
alekszivko committed Jan 23, 2025
1 parent 2af1b00 commit ea87df6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
services:
gamertrack-database:
image: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=gepardec
- POSTGRES_USER=gamertrack
- POSTGRES_DB=gamertrack

gamertrack-backend:
image: gamertrack-war
ports:
- "8080:8080"
links:
- "gamertrack-database:gamertrack-database"
environment:
- POSTGRESQL_USER=gamertrack
- POSTGRESQL_PASSWORD=gepardec
- POSTGRESQL_URL=jdbc:postgresql://gamertrack-database/gamertrack
hostname:

gamertrack-frontend:
image: gamertrack-frontend
ports:
- "4200:80"
links:
- "gamertrack-backend:gamertrack-backend"
hostname: gamertrack-frontend
3 changes: 2 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ events{}
http {
include /etc/nginx/mime.types;
server {
listen 80;
listen 8080;
server_name localhost;
root /usr/share/nginx/html;
index index.html;

location / {
try_files $uri $uri/ /index.html;
Expand Down

0 comments on commit ea87df6

Please # to comment.