Skip to content

Commit

Permalink
fix: update docker-compose.yaml for v2.24.6 (OffchainLabs#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov authored Mar 1, 2024
1 parent 3ac3fc6 commit 24e9c59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
7 changes: 6 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ services:
service: db-init

db:
depends_on:
db-init:
condition: service_completed_successfully
extends:
file: ./docker-compose/services/db.yml
service: db
Expand Down Expand Up @@ -59,14 +62,16 @@ services:

stats-db:
depends_on:
- backend
stats-db-init:
condition: service_completed_successfully
extends:
file: ./docker-compose/services/stats.yml
service: stats-db

stats:
depends_on:
- stats-db
- backend
extends:
file: ./docker-compose/services/stats.yml
service: stats
Expand Down
3 changes: 0 additions & 3 deletions docker-compose/services/db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ services:
chown -R 2000:2000 /var/lib/postgresql/data
db:
depends_on:
db-init:
condition: service_completed_successfully
image: postgres:14
user: 2000:2000
restart: always
Expand Down
5 changes: 0 additions & 5 deletions docker-compose/services/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ services:
chown -R 2000:2000 /var/lib/postgresql/data
stats-db:
depends_on:
stats-db-init:
condition: service_completed_successfully
image: postgres:14
user: 2000:2000
restart: always
Expand Down Expand Up @@ -42,8 +39,6 @@ services:
platform: linux/amd64
restart: always
container_name: 'stats'
depends_on:
- "stats-db"
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file:
Expand Down

0 comments on commit 24e9c59

Please sign in to comment.