Skip to content

Commit

Permalink
Move docker-compose to repo root
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed Aug 8, 2022
1 parent c614303 commit 7ce82bf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 21 deletions.
15 changes: 3 additions & 12 deletions marlowe-chain-sync/docker-compose.yaml → docker-compose.yaml
Expand Up @@ -5,17 +5,14 @@ services:
image: postgres:11.5-alpine
environment:
- POSTGRES_LOGGING=true
- POSTGRES_DB_FILE=/run/secrets/postgres_db
- POSTGRES_USER_FILE=/run/secrets/postgres_user
- POSTGRES_USER=postgres
- POSTGRES_HOST_AUTH_METHOD=trust # Do not use this in production!
secrets:
- postgres_user
- postgres_db
ports:
- ${POSTGRES_PORT:-5432}:5432
volumes:
- postgres:/var/lib/postgresql/data
restart: on-failure
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
Expand All @@ -27,11 +24,5 @@ services:
max-size: "200k"
max-file: "10"

secrets:
postgres_db:
file: ./secrets/postgres_db
postgres_user:
file: ./secrets/postgres_user

volumes:
postgres:
1 change: 0 additions & 1 deletion marlowe-chain-sync/secrets/postgres_db

This file was deleted.

1 change: 0 additions & 1 deletion marlowe-chain-sync/secrets/postgres_user

This file was deleted.

8 changes: 1 addition & 7 deletions marlowe-chain-sync/sqitch.conf
@@ -1,13 +1,7 @@
[core]
engine = pg
# plan_file = sqitch.plan
# top_dir = .
# [engine "pg"]
# target = db:pg:
# registry = sqitch
# client = psql
[target "chain"]
uri = db:pg://postgres:9kZ@o7j4OkMC@0.0.0.0/chain
uri = db:pg://postgres@0.0.0.0/chain
[engine "pg"]
target = chain
[deploy]
Expand Down
2 changes: 2 additions & 0 deletions postgres/init.sql
@@ -0,0 +1,2 @@
CREATE DATABASE chain;
GRANT ALL PRIVILEGES ON DATABASE chain to postgres;

0 comments on commit 7ce82bf

Please sign in to comment.