Move gitea.redis to its own network

This commit is contained in:
Nemo 2018-05-29 19:53:30 +05:30
parent bde455f0c3
commit c3c5c7d0bc
3 changed files with 7 additions and 1 deletions

View File

@ -60,9 +60,9 @@ resource "docker_container" "gitea" {
destroy_grace_seconds = 10
must_run = true
links = [
"gitea-redis",
"mariadb",
]
networks = ["${docker_network.gitea.id}"]
}
resource "docker_image" "gitea" {

4
gitea/network.tf Normal file
View File

@ -0,0 +1,4 @@
resource "docker_network" "gitea" {
name = "gitea"
driver = "bridge"
}

View File

@ -11,6 +11,8 @@ resource "docker_container" "redis" {
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
networks = ["${docker_network.gitea.id}"]
}
resource "docker_image" "redis" {