25 lines
681 B
YAML

- name: Create database
ansible.builtin.include_role:
role: app/database
vars:
app_name: "flowtodo"
- name: Deploy container
community.docker.docker_container:
image: gitgud.foo/thegrind/flowtodo
name: flowtodo
pull: true
state: started
ports:
- "{{ port }}:8000"
env:
APP_URL: "https://do.thatshit.live"
APP_TIMEZONE: "America/New_York"
APP_KEY: "base64:7qHvFe7hgCjspoQfBBqMn1nqA6jrRMkYfee/hYlCNt8="
OCTANE_HTTPS: "true"
DB_CONNECTION: "pgsql"
DB_HOST: "{{ pg_host }}"
DB_PORT: "{{ pg_port | string }}"
DB_DATABASE: "flowtodo"
DB_USERNAME: "flowtodo"
DB_PASSWORD: "password"