-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Container waits for msbuild to finish now * Async stream copying is awaited now, removing possibility of incomplete file streams on Linux * Simple nginx compose configuration for testing * Working port changed to 8088
- Loading branch information
Alex Vorobiev
authored
Jun 16, 2020
1 parent
6ee488a
commit b9acfac
Showing
4 changed files
with
97 additions
and
4 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
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,65 @@ | ||
version: '3.8' | ||
services: | ||
|
||
cdp4_db: | ||
image: rheagroup/cdp4-database-community-edition:latest | ||
hostname: cdp4-postgresql | ||
command: postgres -c max_locks_per_transaction=1024 | ||
environment: | ||
- POSTGRES_PASSWORD=${DB_POSTGRESPASSWORD} | ||
- POSTGRES_USER=postgres | ||
networks: | ||
cdp4: | ||
aliases: | ||
- cdp4-postgresql | ||
container_name: cdp4-database-community-edition | ||
restart: always | ||
ports: | ||
- '${DB_HOSTPORT}:5432' | ||
expose: | ||
- '5432' | ||
volumes: | ||
- cdpdbdata:/var/lib/postgresql/data | ||
- cdpdblogs:/logs | ||
|
||
cdp4_webservices: | ||
hostname: cdp4-webservices | ||
restart: always | ||
build: . | ||
networks: | ||
cdp4: | ||
aliases: | ||
- cdp4-webservices | ||
depends_on: | ||
- cdp4_db | ||
expose: | ||
- '5000' | ||
volumes: | ||
- cdpwslogs:/app/logs | ||
- cdpwsstorage:/app/storage | ||
- cdpwsupload:/app/upload | ||
|
||
nginx: | ||
image: nginx:latest | ||
container_name: cdp4-nginx | ||
restart: always | ||
depends_on: | ||
- cdp4_webservices | ||
volumes: | ||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf | ||
ports: | ||
- 8088:80 | ||
networks: | ||
cdp4: | ||
aliases: | ||
- cdp4-nginx | ||
|
||
networks: | ||
cdp4: | ||
|
||
volumes: | ||
cdpdbdata: | ||
cdpdblogs: | ||
cdpwslogs: | ||
cdpwsstorage: | ||
cdpwsupload: |
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,15 @@ | ||
events { | ||
|
||
} | ||
|
||
http { | ||
error_log /etc/nginx/error_log.log warn; | ||
|
||
server { | ||
listen 80; | ||
|
||
location / { | ||
proxy_pass http://cdp4-webservices:5000; | ||
} | ||
} | ||
} |