added persistent storage
Signed-off-by: Marc Ahlgrim <marc@onemarcfifty.com>
This commit is contained in:
parent
0c87745fb4
commit
47d56593ed
@ -29,6 +29,12 @@ RUN echo 'export PASSWORD=$VSCODE_PASSWORD' >docker-lib/includes/120_vscode.sh
|
|||||||
RUN echo 'pidof node || /usr/bin/code-server --host 0.0.0.0 &' >>docker-lib/includes/120_vscode.sh
|
RUN echo 'pidof node || /usr/bin/code-server --host 0.0.0.0 &' >>docker-lib/includes/120_vscode.sh
|
||||||
RUN chmod 755 docker-lib/includes/120_vscode.sh
|
RUN chmod 755 docker-lib/includes/120_vscode.sh
|
||||||
|
|
||||||
|
# make sure we can write to the ansible volume
|
||||||
|
RUN echo 'sudo chown rundeck:root ansible' >docker-lib/includes/110_volume.sh
|
||||||
|
RUN echo '/bin/touch ~/ansible/ansible.cfg' >>docker-lib/includes/110_volume.sh
|
||||||
|
RUN if [ ! -e ~/.ansible.cfg ] ; then ln -s ~/ansible/ansible.cfg ~.ansible.cfg ; fi
|
||||||
|
RUN chmod 755 docker-lib/includes/110_volume.sh
|
||||||
|
|
||||||
#VOLUME ["/home/rundeck/server/data"]
|
#VOLUME ["/home/rundeck/server/data"]
|
||||||
|
|
||||||
#EXPOSE 4440
|
#EXPOSE 4440
|
||||||
|
|||||||
@ -18,10 +18,16 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 4440:4440
|
- 4440:4440
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
|
volumes:
|
||||||
|
- ansible-data:/home/rundeck/ansible
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:10.5.8
|
image: mariadb:10.5.8
|
||||||
container_name: mariadb
|
container_name: mariadb
|
||||||
restart: on-failure:5
|
restart: on-failure:5
|
||||||
env_file:
|
env_file:
|
||||||
.env
|
.env
|
||||||
|
volumes:
|
||||||
|
- mariadb-data:/var/lib/mysql
|
||||||
|
volumes:
|
||||||
|
mariadb-data:
|
||||||
|
ansible-data:
|
||||||
Loading…
x
Reference in New Issue
Block a user