Created
March 3, 2018 16:24
-
-
Save 1fabiopereira/69aec0784f79c649475a10032f65db22 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
version: '3.2' | |
services: | |
postgresql_db: | |
image: jetherrodrigues/postgresql:v2 | |
container_name: postgresql | |
hostname: postgresql | |
ports: | |
- "55432:5432" | |
networks: | |
- unisal | |
volumes: | |
- ./database:/var/lib/postgresql | |
tty: true | |
tomcat_web: | |
image: jetherrodrigues/my_tomcat:v2 | |
container_name: tomcat | |
hostname: tomcat | |
ports: | |
- "10180:8080" | |
networks: | |
- unisal | |
tty: true | |
depends_on: | |
- postgresql_db | |
pgAdmin_web: | |
image: dpage/pgadmin4 | |
environment: | |
- "[email protected]" | |
- "PGADMIN_DEFAULT_PASSWORD=SuperSecret" | |
container_name: pgAdmin | |
hostname: pgAdmin | |
ports: | |
- "80:80" | |
networks: | |
- unisal | |
tty: true | |
depends_on: | |
- postgresql_db | |
# tomcat_web_app: | |
# image: jetherrodrigues/my_app_tomcat:v1 | |
# environment: | |
# - APPLICATION_LINK_WAR=https://github.com/aulas-unisal/docker/blob/master/application_2/example.war | |
# container_name: tomcat_app | |
# hostname: tomcat_app | |
# ports: | |
# - "15200:8080" | |
# networks: | |
# - unisal | |
# tty: true | |
networks: | |
unisal: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment