-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallabag.tf
35 lines (33 loc) · 929 Bytes
/
wallabag.tf
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
variable wallabag_secret {}
resource "docker_container" "wallabag" {
image = docker_image.wallabag.latest
name = "wallabag"
must_run = true
destroy_grace_seconds = 30
restart = "unless-stopped"
volumes {
host_path = "/opt/wallabag/data"
container_path = "/var/www/wallabag/data"
}
volumes {
host_path = "/opt/wallabag/images"
container_path = "/var/www/wallabag/web/assets/images"
}
labels = {
"name" = "wallabag"
"traefik.enable" = "true"
"traefik.http.routers.wallabag.entrypoints" = "websecure"
"traefik.docker.network" = docker_network.traefik.name
}
networks_advanced {
name = docker_network.traefik.name
}
env = [
"SYMFONY__ENV__FOSUSER_REGISTRATION=false",
"SYMFONY__ENV__SECRET=${var.wallabag_secret}",
"SYMFONY__ENV__DOMAIN_NAME=https://wallabag.${var.domain}"
]
}
resource "docker_image" "wallabag" {
name = "wallabag/wallabag:2.3.8"
}