0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

⬆️ Update postgresql on devenv and add smtp relay container.

This commit is contained in:
Andrey Antukh 2019-11-22 18:03:54 +01:00
parent e9b00339a5
commit b2d13a2493
2 changed files with 14 additions and 5 deletions

View file

@ -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

View file

@ -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'