mirror of
https://github.com/atareao/self-hosted.git
synced 2024-06-30 02:55:38 +02:00
change postgresql to volumes
This commit is contained in:
parent
9043b9b312
commit
7bd45e3f8a
|
@ -5,9 +5,6 @@ git clone https://github.com/atareao/self-hosted.git
|
||||||
cd self-hosted/postgres
|
cd self-hosted/postgres
|
||||||
cp sample.env .env
|
cp sample.env .env
|
||||||
sed -i "s/flame.tuservidor.es/el_fqdn_que_quieras/g" .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.
|
Además recuerda cambiar la contraseña.
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
networks:
|
networks:
|
||||||
|
@ -21,11 +21,15 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./pgadmin:/var/lib/pgadmin
|
- pgadmin:/var/lib/pgadmin
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data: {}
|
||||||
|
pgadmin: {}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user