blob: 448a141365972669f4b7225ebf6f9eaa331651d6 (
plain) (
blame)
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
|
securityContext:
allowPrivilegeEscalation: false
terminationGracePeriodSeconds: 120
containers:
- name: wiki
image: "requarks/wiki:{{ item.value.version }}"
resources:
limits:
memory: "1Gi"
env:
- name: "DB_TYPE"
value: "postgres"
- name: "DB_HOST"
value: "127.0.0.1"
- name: "DB_PORT"
value: "5432"
- name: "DB_NAME"
value: "wiki"
- name: "DB_USER"
value: "wikijs"
- name: "DB_PASS"
value: "{{ item.value.database.password }}"
ports:
- containerPort: 3000
hostPort: {{ item.value.port }}
hostIP: 127.0.0.1
- name: postgresql
image: "postgres:{{ item.value.database.version }}"
args:
- postgres
- -c
- listen_addresses=127.0.0.1
securityContext:
runAsUser: {{ wikijs_db_uid }}
runAsGroup: {{ wikijs_db_gid }}
env:
- name: "POSTGRES_DB"
value: "wiki"
- name: "POSTGRES_USER"
value: "wikijs"
- name: "POSTGRES_PASSWORD"
value: "{{ item.value.database.password }}"
volumeMounts:
- name: postgres
mountPath: /var/lib/postgresql/data
volumes:
- name: postgres
hostPath:
path: "{{ wikijs_base_path }}/{{ item.key }}/postgres"
type: Directory
|