Improve image build scripts (with many fixes).

This commit is contained in:
Andrey Antukh 2019-12-13 12:51:56 +01:00
parent b8050068d7
commit 17aa744b52
4 changed files with 28 additions and 31 deletions

View file

@ -12,12 +12,12 @@ volumes:
user_data:
services:
devenv:
main:
privileged: true
build:
context: ./
hostname: 'uxbox-devenv'
container_name: 'uxbox-devenv-main'
hostname: 'uxboxdev-main'
container_name: 'uxboxdev-main'
command: "/home/uxbox/init.sh"
stop_signal: SIGINT
depends_on:
@ -40,7 +40,7 @@ services:
- UXBOX_DATABASE_PASSWORD="uxbox"
smtp:
container_name: 'uxbox-devenv-smtp'
container_name: 'uxboxdev-smtp'
image: mwader/postfix-relay
restart: always
environment:
@ -49,9 +49,9 @@ services:
postgres:
image: postgres:12
# command: postgres -c config_file=/etc/postgresql.conf
hostname: 'uxbox-devenv-postgres'
container_name: 'uxbox-devenv-postgres'
command: postgres -c config_file=/etc/postgresql.conf
hostname: 'uxboxdev-postgres'
container_name: 'uxboxdev-postgres'
restart: always
stop_signal: SIGINT
ports:
@ -62,5 +62,6 @@ services:
- POSTGRES_USER=uxbox
- POSTGRES_PASSWORD=uxbox
volumes:
# - ./files/postgresql.conf:/etc/postgresql.conf
- ./files/postgresql.conf:/etc/postgresql.conf
- ./files/postgresql_init.sql:/docker-entrypoint-initdb.d/init.sql
- postgres_data:/var/lib/postgresql/data