-
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.
docker config for staging environment
- Loading branch information
Benjamin POCHAT
authored and
Benjamin POCHAT
committed
Feb 21, 2021
1 parent
1dc6ddf
commit 4b189f2
Showing
11 changed files
with
56 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: '3.7' | ||
services: | ||
|
||
database: | ||
image: postgres:12.2-alpine | ||
networks: | ||
- hostnet | ||
volumes: | ||
- /var/lib/postgresql/data/pgdata:/var/lib/postgresql/data/pgdata | ||
environment: | ||
- POSTGRES_USER=localeat | ||
- POSTGRES_PASSWORD=localeat | ||
- PGDATA=/var/lib/postgresql/data/pgdata | ||
|
||
core: | ||
build: | ||
context: "." | ||
dockerfile: ./core/Dockerfile | ||
image: benjaminpochat/localeat-core-staging:${DOCKER_IMAGE_TAG:-latest} | ||
networks: | ||
- hostnet | ||
depends_on: | ||
- database | ||
environment: | ||
- localeat_datasource_url=jdbc:postgresql://localhost:5432/localeat | ||
- localeat_datasource_username=localeat | ||
- localeat_datasource_password=localeat | ||
- [email protected] | ||
- localeat_smtp_password=localeat | ||
|
||
ui: | ||
build: | ||
context: "." | ||
dockerfile: ./ui/Dockerfile | ||
image: benjaminpochat/localeat-ui-staging:${DOCKER_IMAGE_TAG:-latest} | ||
networks: | ||
- hostnet | ||
depends_on: | ||
- core | ||
environment: | ||
- localeat_environment_type=staging | ||
|
||
networks: | ||
hostnet: | ||
external: true | ||
name: host |
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
File renamed without changes.
File renamed without changes.
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 @@ | ||
export DOCKER_IMAGE_TAG=latest | ||
docker-compose -f docker-compose-staging.yml build | ||
|
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 @@ | ||
docker stack rm localeat-staging |
File renamed without changes.
File renamed without changes.
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,2 @@ | ||
docker-compose pull | ||
docker stack deploy -c docker-compose.yml localeat-staging |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const environment = { | ||
production: false, | ||
localeatCoreUrl: 'http://vps695750.ovh.net:8080' | ||
localeatCoreUrl: 'http://localhost:8080' | ||
}; |