-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
580bafc
commit d2deeca
Showing
7 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
version: '3.8' | ||
|
||
services: | ||
backend: | ||
depends_on: | ||
- postgres # Only in prod mode | ||
|
||
postgres: | ||
image: postgres:15-alpine | ||
container_name: postgres | ||
environment: | ||
POSTGRES_USER: myuser # Creates the "myuser" role | ||
POSTGRES_PASSWORD: mypassword # Password for "myuser" | ||
POSTGRES_DB: guitardb # Creates the "guitardb" database | ||
# Set the profile to prod and connect to Postgres | ||
SPRING_PROFILES_ACTIVE: prod | ||
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/guitardb | ||
SPRING_DATASOURCE_USERNAME: myuser | ||
SPRING_DATASOURCE_PASSWORD: mypassword | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- postgres_data:/var/lib/postgresql/data | ||
networks: | ||
- guitartuto-network | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -U myuser -d guitardb"] | ||
interval: 10s | ||
retries: 5 | ||
start_period: 5s | ||
|
||
networks: | ||
guitartuto-network: | ||
driver: bridge | ||
|
||
volumes: | ||
postgres_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
VITE_API_BASE_URL=http://backend | ||
VITE_API_PORT=8080 | ||
# VITE_ENVIRONMENT=DEVELOPMENT |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters