change postgresql to volumes

This commit is contained in:
Lorenzo Carbonell 2023-03-18 09:09:11 +01:00
parent 9043b9b312
commit 7bd45e3f8a
2 changed files with 6 additions and 5 deletions

View File

@ -5,9 +5,6 @@ git clone https://github.com/atareao/self-hosted.git
cd self-hosted/postgres
cp sample.env .env
sed -i "s/flame.tuservidor.es/el_fqdn_que_quieras/g" .env
mkdir data pgadmin
chown 999:0 data
chown 5050:1000 pgadmin
```
Además recuerda cambiar la contraseña.

View File

@ -8,7 +8,7 @@ services:
env_file:
- .env
volumes:
- ./postgres_data:/var/lib/postgresql/data
- postgres_data:/var/lib/postgresql/data
logging:
driver: journald
networks:
@ -21,11 +21,15 @@ services:
env_file:
- .env
volumes:
- ./pgadmin:/var/lib/pgadmin
- pgadmin:/var/lib/pgadmin
logging:
driver: journald
networks:
- internal
volumes:
postgres_data: {}
pgadmin: {}
networks:
internal: