diff options
| author | 2021-06-06 22:35:12 +0100 | |
|---|---|---|
| committer | 2021-06-06 22:38:43 +0100 | |
| commit | ac50736bf1d537751dade4e6d5d1c585aaaa1c74 (patch) | |
| tree | d2446244e6fcfa2932bc129285adc876f869c185 | |
| parent | Merge pull request #768 from python-discord/fix/attribute-errors (diff) | |
Change to unless-stopped restart policy
Since we use the same port for redis on all out projects, having this
always restart causes conflicts for people starting up docker and
wanting to use redis for anyother project.
| -rw-r--r-- | docker-compose.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index a18534a5..cef49213 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,17 @@ version: "3.7" + +x-restart-policy: &restart_policy + restart: unless-stopped + services: sir-lancebot: + << : *restart_policy build: context: . dockerfile: Dockerfile container_name: sir-lancebot init: true - restart: always depends_on: - redis @@ -20,6 +24,7 @@ services: - .:/bot redis: + << : *restart_policy image: redis:latest ports: - "127.0.0.1:6379:6379" |