mirror of
https://github.com/penpot/penpot.git
synced 2026-03-31 00:29:37 +02:00
⬆️ Update postgresql on devenv and add smtp relay container.
This commit is contained in:
@@ -43,12 +43,12 @@ RUN set -ex; \
|
||||
apt-get -qq update; \
|
||||
apt-get install -qqy zulu-12; \
|
||||
apt-get install -qqy \
|
||||
postgresql-11 \
|
||||
postgresql-contrib-11 \
|
||||
postgresql-12 \
|
||||
postgresql-contrib-12 \
|
||||
;\
|
||||
rm -rf /var/lib/apt/lists/*;
|
||||
|
||||
COPY files/pg_hba.conf /etc/postgresql/11/main/pg_hba.conf
|
||||
COPY files/pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
|
||||
COPY files/bashrc /root/.bashrc
|
||||
COPY files/vimrc /root/.vimrc
|
||||
|
||||
|
||||
@@ -17,11 +17,12 @@ services:
|
||||
build:
|
||||
context: ./
|
||||
hostname: 'uxbox-devenv'
|
||||
container_name: 'uxbox-devenv'
|
||||
container_name: 'uxbox-devenv-main'
|
||||
command: "/home/uxbox/init.sh"
|
||||
stop_signal: SIGINT
|
||||
depends_on:
|
||||
- postgres
|
||||
- smtp
|
||||
volumes:
|
||||
- "user_data:/home/uxbox/local"
|
||||
- "${PWD}:/home/uxbox/uxbox"
|
||||
@@ -31,13 +32,21 @@ services:
|
||||
ports:
|
||||
- 3449:3449
|
||||
- 6060:6060
|
||||
- 9090:9090
|
||||
|
||||
environment:
|
||||
- UXBOX_HTTP_SERVER_DEBUG=false
|
||||
- UXBOX_DATABASE_URI="postgresql://postgres/uxbox"
|
||||
- UXBOX_DATABASE_USERNAME="uxbox"
|
||||
- UXBOX_DATABASE_PASSWORD="uxbox"
|
||||
|
||||
smtp:
|
||||
container_name: 'uxbox-devenv-smtp'
|
||||
image: mwader/postfix-relay
|
||||
restart: always
|
||||
environment:
|
||||
- POSTFIX_myhostname=smtp.uxbox.io
|
||||
- OPENDKIM_DOMAINS=smtp.uxbox.io
|
||||
|
||||
postgres:
|
||||
image: postgres:12
|
||||
hostname: 'uxbox-devenv-postgres'
|
||||
|
||||
Reference in New Issue
Block a user