Skip to content

Commit

Permalink
Use newer standard postgres image and switch to bind mount for db data
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar committed Apr 28, 2023
1 parent 5185b5e commit cac2aec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ volumes:

services:
db:
image: avalonmediasystem/db:fedora4
image: postgres:14-alpine
build: ./db
volumes:
- database:/data
- ./db/init-db:/docker-entrypoint-initdb.d
- ./db_data:/data
environment:
- AVALON_DB_PASSWORD
- FEDORA_DB_PASSWORD
Expand Down Expand Up @@ -59,7 +60,7 @@ services:
avalon: &avalon
image: avalonmediasystem/avalon:7
build:
context: https://github.com/avalonmediasystem/avalon.git#v7.5.1
context: https://github.com/avalonmediasystem/avalon.git#v7.6.0
target: prod
command: bash -c "bundle exec rake db:migrate && bundle exec rails server -b 0.0.0.0"
depends_on:
Expand Down

0 comments on commit cac2aec

Please sign in to comment.