Commit 19c07224 authored by cossins's avatar cossins
Browse files

docker-compose with 3services: postgres, pgadmin, tomcat

parent ff1bee1d
version: '3'
services:
postgresql:
image: postgres:12.5
container_name: webapi_postgres
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- ./postgres-data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4:4.29
container_name: webapi_pgadmin
ports:
- ${PGADMIN_PORT}:5454
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
PGADMIN_LISTEN_PORT: 5454
tomcat:
image: tomcat:8.5
container_name: webapi_tomcat
ports:
- ${TOMCAT_PORT}:8080
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment