update container
This commit is contained in:
parent
4ed5a562ec
commit
37730306ef
|
@ -10,7 +10,7 @@ RUN apt-get -y update \
|
|||
&& useradd -r -d /opt/postal -s /bin/bash postal \
|
||||
&& chown -R postal:postal /opt/postal/ \
|
||||
&& /opt/postal/bin/postal bundle /opt/postal/vendor/bundle \
|
||||
&& apt-get -y purge python-dev git-core python-setuptools \
|
||||
&& apt-get -y purge python-dev git-core \
|
||||
&& apt-get -y autoremove \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
version: "3"
|
||||
services:
|
||||
postal:
|
||||
image: catdeployed/postal:dev
|
||||
build: .
|
||||
#image: catdeployed/postal:dev
|
||||
container_name: postal
|
||||
command: run
|
||||
ports:
|
||||
|
@ -12,7 +13,7 @@ services:
|
|||
volumes:
|
||||
- static_assets:/opt/postal/public
|
||||
- ./data/postal/assets:/opt/postal/public/assets
|
||||
- ./data/postal/config:/opt/postal/config
|
||||
- ./src/templates/:/templates
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=changeme
|
||||
- MYSQL_DATABASE=postal
|
||||
|
|
|
@ -10,6 +10,7 @@ if [ ! -f /opt/postal/config/postal.yml ] || [[ $(cat /opt/postal/config/postal.
|
|||
## Generate config and keys
|
||||
/opt/postal/bin/postal initialize-config
|
||||
fi
|
||||
cat /opt/postal/config/postal.yml
|
||||
|
||||
## Clean Up
|
||||
rm -rf /opt/postal/tmp/pids/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user