-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook_local.yml
126 lines (118 loc) · 3.62 KB
/
playbook_local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---
- name: "georgslauf api playbook"
hosts: "localhost"
gather_facts: false
become: false
vars_files:
- "./vars/local.yml"
tasks:
- name: "Build loadbalancer image"
containers.podman.podman_image:
name: "localhost/georgslauf-lb"
path: "./haproxy/"
build:
extra_args: "-f Containerfile.lb_local"
force: yes
pull: no
tag: "latest"
tags:
- "lb"
- "recreate"
- name: "Start loadbalancer container"
containers.podman.podman_container:
name: "georgslauf-lb"
image: "localhost/georgslauf-lb:latest"
state: "started"
restart_policy: "on-failure"
recreate: yes
ports:
- "8081:8081"
tags:
- "lb"
- "recreate"
- name: "georgslauf auth pod"
containers.podman.podman_pod:
name: "georgslauf-auth-pod"
state: "created"
infra_name: "georgslauf-auth-infra"
recreate: no
ports:
- "11431:5432" # postgresql
- "11455:3000" # selfservice example
- "11433:4433" # kratos public
- "11434:4434" # kratos admin
- "11446:4446" # mailslurper dashboard
- "4447:4447" # mailslurper api, FE expects this port
tags:
- "auth"
- name: "georgslauf auth db"
containers.podman.podman_container:
name: "georgslauf-auth-db"
image: "docker.io/library/postgres:15.1-alpine3.17"
state: "started"
restart_policy: "on-failure"
recreate: no
pod: "georgslauf-auth-pod"
volume:
- "{{ playbook_dir }}/auth/db:/var/lib/postgresql/data:Z"
env:
POSTGRES_USER: "kratos"
POSTGRES_PASSWORD: "{{ georgslauf_auth_db.password }}"
POSTGRES_DB: "kratos"
tags:
- "auth"
- name: "georgslauf auth migration"
containers.podman.podman_container:
name: "georgslauf-auth-migrate"
image: "docker.io/oryd/kratos:v0.13.0"
state: "started"
restart_policy: "no"
rm: yes
pod: "georgslauf-auth-pod"
volume:
- "{{ playbook_dir }}/auth/config:/etc/config/kratos:z"
env:
DSN: "postgres://kratos:{{ georgslauf_auth_db.password }}@127.0.0.1:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4"
command: "-c /etc/config/kratos/kratos.yml migrate sql -e --yes"
tags:
- "auth"
- name: "kratos"
containers.podman.podman_container:
name: "georgslauf-auth-app"
image: "docker.io/oryd/kratos:v0.13.0"
state: "started"
restart_policy: "no"
rm: no
pod: "georgslauf-auth-pod"
volume:
- "{{ playbook_dir }}/auth/config:/etc/config/kratos:z"
env:
DSN: "postgres://kratos:{{ georgslauf_auth_db.password }}@127.0.0.1:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4"
command: "serve -c /etc/config/kratos/kratos.yml --dev --watch-courier"
tags:
- "auth"
- name: "mailslurper"
containers.podman.podman_container:
name: "georgslauf-auth-mailslurper"
image: "docker.io/oryd/mailslurper:smtps-latest"
state: "started"
restart_policy: "no"
recreate: yes
pod: "georgslauf-auth-pod"
volume:
- "{{ playbook_dir }}/mailslurper.json:/go/src/github.com/mailslurper/mailslurper/cmd/mailslurper/config.json:ro,Z"
tags:
- "auth"
- name: "kratos-selfservice-example"
containers.podman.podman_container:
name: "georgslauf-auth-selfservice"
image: "docker.io/oryd/kratos-selfservice-ui-node:v0.13.0"
state: "started"
restart_policy: "no"
rm: no
pod: "georgslauf-auth-pod"
env:
KRATOS_PUBLIC_URL: "http://127.0.0.1:4433/"
KRATOS_BROWSER_URL: "http://localhost:11433/"
tags:
- "auth"