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