no restart policy on docker-compose.test.yml

This commit is contained in:
vos 2020-03-15 09:24:02 +01:00
parent 97d7df54fc
commit 1b7dd187e0

View file

@ -2,7 +2,6 @@ version: '3.4'
services: services:
netbox: netbox:
image: ${IMAGE-netboxcommunity/netbox:latest} image: ${IMAGE-netboxcommunity/netbox:latest}
restart: unless-stopped
depends_on: depends_on:
- postgres - postgres
- redis - redis
@ -19,7 +18,6 @@ services:
- netbox-media-files:/opt/netbox/netbox/media:z - netbox-media-files:/opt/netbox/netbox/media:z
nginx: nginx:
command: nginx -c /etc/netbox-nginx/nginx.conf command: nginx -c /etc/netbox-nginx/nginx.conf
restart: unless-stopped
image: nginx:1.17-alpine image: nginx:1.17-alpine
depends_on: depends_on:
- netbox - netbox
@ -30,11 +28,9 @@ services:
- netbox-nginx-config:/etc/netbox-nginx/:ro - netbox-nginx-config:/etc/netbox-nginx/:ro
postgres: postgres:
image: postgres:11-alpine image: postgres:11-alpine
restart: unless-stopped
env_file: env/postgres.env env_file: env/postgres.env
redis: redis:
image: redis:5-alpine image: redis:5-alpine
restart: unless-stopped
command: command:
- sh - sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env - -c # this is to evaluate the $REDIS_PASSWORD from the env