1CHART_APP_IMAGE=$1
 2cat << EOF
 3version: '3'
 4volumes:
 5  postgres-data-eps-sg:
 6services:
 7    chart_db-eps-sg:
 8        image: postgres
 9        hostname: chart_db-epssg
10        environment:
11            POSTGRES_USER: dev
12<<<hidden due to potential security issue>>>
13            POSTGRES_DB: CHARTEPSSG
14        restart: always
15        ports:
16            - 5432:5432
17        volumes:
18            - postgres-data-eps-sg:/var/lib/postgresql/data
19    pgadmin:
20        image: dpage/pgadmin4
21        depends_on:
22        - chart_db-eps-sg
23        ports:
24        - 5255:80
25        environment:
26            PGADMIN_DEFAULT_EMAIL: chart@solenix.ch
27<<<hidden due to potential security issue>>>
28        restart: unless-stopped
29    chartepssg:
30        image: ${CHART_APP_IMAGE}
31        command: serve
32        depends_on:
33        - chart_db-eps-sg
34        ports:
35        - 10000:10000
36        - 5678:5678
37        restart: unless-stopped
38EOF