Skip to content

Commit

Permalink
ci: deduplicate compose spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Borketh committed Sep 30, 2024
1 parent 0b6e7c7 commit 3c3093e
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include:
- docker-compose-deps.yml
services:
fred:
depends_on:
Expand All @@ -16,27 +18,4 @@ services:
FRED_SQL_HOST: postgres
FRED_SQL_PORT: 5432
ports:
- "80:80"

postgres:
image: postgres:14.0-alpine
environment:
POSTGRES_PASSWORD: fred
POSTGRES_USER: fred
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- pgdata:/var/lib/postgresql/data/pgdata:z
- ./docker/exampledb.sql:/docker-entrypoint-initdb.d/exampledb.sql

pgadmin:
depends_on:
- postgres
image: dpage/pgadmin4:6
environment:
PGADMIN_DEFAULT_EMAIL: '[email protected]'
PGADMIN_DEFAULT_PASSWORD: 'fred'
ports:
- "8080:80"

volumes:
pgdata:
- "80:80"

0 comments on commit 3c3093e

Please sign in to comment.