Move gitea.redis to its own network
This commit is contained in:
parent
bde455f0c3
commit
c3c5c7d0bc
|
@ -60,9 +60,9 @@ resource "docker_container" "gitea" {
|
||||||
destroy_grace_seconds = 10
|
destroy_grace_seconds = 10
|
||||||
must_run = true
|
must_run = true
|
||||||
links = [
|
links = [
|
||||||
"gitea-redis",
|
|
||||||
"mariadb",
|
"mariadb",
|
||||||
]
|
]
|
||||||
|
networks = ["${docker_network.gitea.id}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "docker_image" "gitea" {
|
resource "docker_image" "gitea" {
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
resource "docker_network" "gitea" {
|
||||||
|
name = "gitea"
|
||||||
|
driver = "bridge"
|
||||||
|
}
|
|
@ -11,6 +11,8 @@ resource "docker_container" "redis" {
|
||||||
restart = "unless-stopped"
|
restart = "unless-stopped"
|
||||||
destroy_grace_seconds = 10
|
destroy_grace_seconds = 10
|
||||||
must_run = true
|
must_run = true
|
||||||
|
|
||||||
|
networks = ["${docker_network.gitea.id}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "docker_image" "redis" {
|
resource "docker_image" "redis" {
|
||||||
|
|
Loading…
Reference in New Issue