modify docker stuffs

This commit is contained in:
cbax 2024-10-28 23:40:22 -04:00
commit f5ebdedd55
2 changed files with 13 additions and 4 deletions

View file

@ -9,4 +9,5 @@ services:
- '7654:7654' - '7654:7654'
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- /srv/http/cbax_dev:/app/static - /srv/http/cbax_dev/static:/app/static
- /srv/http/cbax_dev/posts:/app/posts

View file

@ -9,11 +9,19 @@
src: "{{playbook_dir}}/" src: "{{playbook_dir}}/"
dest: "/root/cbax_dev" dest: "/root/cbax_dev"
- name: Move assets - name: Copy static files to application folder in /srv/http
ansible.builtin.copy: ansible.builtin.copy:
backup: true
remote_src: true remote_src: true
src: /root/cbax_dev/static/ src: /root/cbax_dev/static
dest: /srv/http/cbax_dev/ dest: /srv/http/cbax_dev/static
- name: Copy posts to application folder in /srv/http
ansible.builtin.copy:
backup: true
remote_src: true
src: /root/cbax_dev/posts
dest: /srv/http/cbax_dev/posts
- name: Tear down existing service - name: Tear down existing service
ansible.builtin.command: "docker compose down --rmi all" ansible.builtin.command: "docker compose down --rmi all"