Skip to content

Commit

Permalink
Refactor docker-compose.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
drazisil committed Sep 15, 2024
1 parent 087b88f commit 6bbb999
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.1"

services:
nginx:
build:
Expand All @@ -9,28 +7,28 @@ services:
- "80:80"
extra_hosts:
- "host.docker.internal:host-gateway"
# db:
# image: postgres:14.6
# ports:
# - "5432:5432"
# # TODO: #1182 remove before prod https://github.com/drazisil/mco-server/issues/1008
# environment:
# POSTGRES_PASSWORD: "password"
# POSTGRES_DB: "mcos"
# pgadmin:
# image: dpage/pgadmin4:6.18
# # TODO: #1182 remove these before prod https://github.com/drazisil/mco-server/issues/1008
# environment:
# PGADMIN_DEFAULT_EMAIL: "admin@pgadmin.com"
# PGADMIN_DEFAULT_PASSWORD: "password"
# PGADMIN_LISTEN_PORT: "80"
# POSTGRES_DB: "mcos"
# ports:
# - "15432:80"
# volumes:
# - pgadmin:/var/lib/pgadmin
# depends_on:
# - db
db:
image: postgres:14.6
ports:
- "5432:5432"
# TODO: #1182 remove before prod https://github.com/drazisil/mco-server/issues/1008
environment:
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "mcos"
pgadmin:
image: dpage/pgadmin4:6.18
# TODO: #1182 remove these before prod https://github.com/drazisil/mco-server/issues/1008
environment:
PGADMIN_DEFAULT_EMAIL: "admin@pgadmin.com"
PGADMIN_DEFAULT_PASSWORD: "password"
PGADMIN_LISTEN_PORT: "80"
POSTGRES_DB: "mcos"
ports:
- "15432:80"
volumes:
- pgadmin:/var/lib/pgadmin
depends_on:
- db

# node:
# image: "node:19"
Expand Down Expand Up @@ -64,5 +62,5 @@ services:
# depends_on:
# - db

# volumes:
# pgadmin:
volumes:
pgadmin:

0 comments on commit 6bbb999

Please sign in to comment.