diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 3156d76..f1c4557 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -3,7 +3,7 @@ name: CD on: push: branches: - - test_cd + - main jobs: push_image_to_docker_hub: diff --git a/docker-compose.yml b/docker-compose.yml index c6e5b36..a45968e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,7 @@ volumes: services: mylinks_db: + container_name: MyLinksDB image: mysql:latest restart: always volumes: @@ -17,10 +18,11 @@ services: mylinks: restart: always container_name: MyLinks - build: - context: . + image: sonny93/my-links:latest + # build: + # context: . ports: - - 3000:3000 + - 127.0.0.1:5000:3000 env_file: - .env depends_on: