diff --git a/services/postgresql.spec b/services/postgresql.spec index a31cc9f..204b194 100644 --- a/services/postgresql.spec +++ b/services/postgresql.spec @@ -12,11 +12,12 @@ ports: postgresql # command: mkdir -p db && chown postgres:postgres db %file db - name: database creation + name: database creation-command: mkdir db && chown postgres:postgres db && su - postgres -c "initdb --locale en_US.UTF-8 -D '${SERVICE_ROOT}/db'" && rm db/postgresql.conf #export-command: FIXME %configuration db/postgresql.conf + name: database configuration # gen-config inherits its parameters from the environment creation-command: gen-config postgresql.conf ${SERVICE_ROOT}/postgresql.conf && chown postgres:postgres ${SERVICE_ROOT}/postgresql.conf