Skip to content

Commit

Permalink
fix(docker-compose.yml): change volumes's name [WiP]
Browse files Browse the repository at this point in the history
* add volumes: - pgadmin-data:/var/lib/pgadmin
  => pgadmin section

* add pgadmin-data: => volumes:

Before:
docker-compose.yml generate unnamed volume =>
pgadmin

After:
docker-compose.yml generate volume =>
docker-compose-pgadmin-data

To accept this fix:
- remove old docker containers
     docker rm -OLD-
- remove old docker volume
     docker volume rm -OLD-
- run db:start
- run db:migrations:run

Closes VladiRR#24
  • Loading branch information
VladiRR committed Mar 13, 2021
1 parent 2c55a70 commit 6590773
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@ services:
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
volumes:
- pgadmin-data:/var/lib/pgadmin
restart: unless-stopped
networks:
- backend

volumes:
postgres-data:
pgadmin-data:

networks:
backend:

0 comments on commit 6590773

Please sign in to comment.