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 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"]
|
||||
|
||||
#EXPOSE 4440
|
||||
|
||||
@ -18,10 +18,16 @@ services:
|
||||
ports:
|
||||
- 4440:4440
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- ansible-data:/home/rundeck/ansible
|
||||
mariadb:
|
||||
image: mariadb:10.5.8
|
||||
container_name: mariadb
|
||||
restart: on-failure:5
|
||||
env_file:
|
||||
.env
|
||||
|
||||
volumes:
|
||||
- mariadb-data:/var/lib/mysql
|
||||
volumes:
|
||||
mariadb-data:
|
||||
ansible-data:
|
||||
Loading…
x
Reference in New Issue
Block a user