Skip to content

Commit

Permalink
Pass ./docker/postgres/postgresql.local.conf in non-production swarm
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Jul 31, 2024
1 parent 6283a42 commit e70e11f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-snapshot/local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ services:
- source: POSTGRES_PASSWORD_FILE
volumes:
- type: bind
source: /home/danon/Projects/coyote/docker/postgres/postgresql.prod.conf
source: /home/danon/Projects/coyote/docker/postgres/postgresql.local.conf
target: /etc/postgresql/postgresql.auto.conf
- type: volume
source: postgres
Expand Down
2 changes: 1 addition & 1 deletion docker-snapshot/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ services:
- source: POSTGRES_PASSWORD_FILE
volumes:
- type: bind
source: /home/danon/Projects/coyote/docker/postgres/postgresql.prod.conf
source: /home/danon/Projects/coyote/docker/postgres/postgresql.local.conf
target: /etc/postgresql/postgresql.auto.conf
- type: volume
source: postgres
Expand Down
3 changes: 3 additions & 0 deletions docker-swarm.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ services:
environment: *local-env
worker:
environment: *local-env
db:
volumes:
- ./docker/postgres/postgresql.local.conf:/etc/postgresql/postgresql.auto.conf
3 changes: 3 additions & 0 deletions docker-swarm.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ services:
worker:
environment: *production-env
secrets: [ MAILGUN_SECRET_FILE ]
db:
volumes:
- ./docker/postgres/postgresql.prod.conf:/etc/postgresql/postgresql.auto.conf

secrets:
MAILGUN_SECRET_FILE:
Expand Down
3 changes: 3 additions & 0 deletions docker-swarm.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ services:
worker:
environment: *staging-env
secrets: [ MAILGUN_SECRET_FILE ]
db:
volumes:
- ./docker/postgres/postgresql.local.conf:/etc/postgresql/postgresql.auto.conf

secrets:
MAILGUN_SECRET_FILE:
Expand Down
1 change: 0 additions & 1 deletion docker-swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ services:
ports:
- 5432:5432
volumes:
- ./docker/postgres/postgresql.prod.conf:/etc/postgresql/postgresql.auto.conf
- postgres:/var/lib/postgresql/data:z
environment:
POSTGRES_USER: coyote
Expand Down

0 comments on commit e70e11f

Please sign in to comment.