diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 9ded7b0..e9cdee0 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -11,6 +11,7 @@ services: max-file: "10" restart: unless-stopped nginx-proxy: + container_name: nginx-proxy image: jwilder/nginx-proxy labels: - "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true" @@ -30,6 +31,7 @@ services: - html:/usr/share/nginx/html - vhost.d:/etc/nginx/vhost.d letsencrypt-nginx-proxy-companion: + container_name: nginx-proxy-le image: jrcs/letsencrypt-nginx-proxy-companion depends_on: - nginx-proxy diff --git a/docker-compose.yml b/docker-compose.yml index fc861f8..e9dd5f9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,12 @@ version: '3' services: db: + container_name: db image: postgres:11 volumes: - data:/var/lib/postgresql/data web: + container_name: app command: bundle exec unicorn -c config/unicorn.rb entrypoint: bin/wait-for-it.sh db:5432 -s -- environment: