diff --git a/docker-compose.yml b/docker-compose.yml index be26eaa89d97a8e02d7c4085faba8dbe0b855c77..630d0f5f13640a398980000f4d4a1ba27fb08036 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,32 +10,6 @@ services: - ./the_social_network:/code networks: - webnet - - nginx: - container_name: nginx - image: nginx:latest - restart: always - depends_on: - - the_social_network - - certbot - volumes: - - ./nginx/production/:/etc/nginx/conf.d - - ./nginx/certbot/conf:/etc/letsencrypt - - ./nginx/certbot/www:/var/www/certbot - networks: - - webnet - ports: - - "80:80" - - "443:443" - command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" - - certbot: - image: certbot/certbot:latest - restart: unless-stopped - volumes: - - ./nginx/certbot/conf:/etc/letsencrypt - - ./nginx/certbot/www:/var/www/certbot - entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'" - + networks: webnet: