mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-12 13:01:51 +00:00
Add volume to proxstar-postgres
This commit is contained in:
parent
6ab066d5b6
commit
d36a5a3355
3 changed files with 8 additions and 2 deletions
|
@ -17,7 +17,7 @@ If you want to work on Proxstar using a 1:1 development setup, there are a coupl
|
|||
|
||||
I would recommend setting up a development account on your Proxmox node. Name it anything. (Maybe `proxstartest`?). This is necessary to grab authentication tokens and the like. It should have the same permissions as `root@pam`. You can accomplish this by creating a group in `Datacenter > Permissions > Groups` and adding `Administrator` permissions to the group, then adding your user to the group. If you do this, then it's easy to enable/disable it for development. You should also generate an SSH key for the user.
|
||||
|
||||
You might also have to set up a pool on your Proxmox node with your CSH username. To do this, go into `Datacenter > Permissions > Pools > Create`.
|
||||
When you log into your Proxstar instance, it should auto-create the pool. If for some reason it doesn't, you can set up a pool on your Proxmox node with your CSH username. To do this, go into `Datacenter > Permissions > Pools > Create`.
|
||||
|
||||
2. Set up your environment
|
||||
|
||||
|
|
|
@ -12,3 +12,9 @@ services:
|
|||
- 127.0.0.1:5432:5432
|
||||
environment:
|
||||
POSTGRES_PASSWORD: tits12348
|
||||
volumes:
|
||||
- type: volume
|
||||
source: proxstar-postgres
|
||||
target: /var/lib/postgresql/data
|
||||
volumes:
|
||||
proxstar-postgres:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
FROM postgres:12
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y postgresql-plperl-12 postgresql-plpython3-12 libnet-ip-perl libnet-ldap-perl libnet-dns-perl libnet-snmp-perl libnet-server-mail-perl libcrypt-des-perl build-essential cpanminus \
|
||||
&& apt-get install -y postgresql-plperl-12 postgresql-plpython3-12 libnet-ip-perl libnet-ldap-perl libnet-dns-perl libnet-snmp-perl libnet-server-mail-perl libcrypt-des-perl build-essential cpanminus curl \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& cpanm Data::Validate::Domain \
|
||||
&& apt-get remove -y build-essential
|
||||
|
|
Loading…
Reference in a new issue